run in terminal (project dir):
yarn add [email protected] jquery popper.js
file:
app/assets/stylesheets/application.css
rename to:
.scss
insert:
*= require bootstrap
in file:
app/javascript/packs/application.js
insert:
import "bootstrap"
in file:
config/webpack/environment.js
insert:
const webpack = require("webpack")
environment.plugins.append("Provide", new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
Popper: ['popper.js', 'default']
}))