From cd0f44b3dded9cd7404e2ba1726c4965ac85d597 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Sun, 5 May 2024 18:14:33 +0100 Subject: [PATCH] Update README.md I'm using importmaps and not using sprockets. After following the steps to install bootstrap, javascript was not working - this fixed it. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index de578f6c..3d5c96e7 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,13 @@ Whichever files you pin will need to be added to `config.assets.precompile`: Rails.application.config.assets.precompile += %w(bootstrap.min.js popper.js) ``` +Add Bootstrap dependencies and Bootstrap to your `application.js`: + +```js +import "@popperjs/core" +import "bootstrap" +``` + #### Sprockets Add Bootstrap dependencies and Bootstrap to your `application.js`: