Adding Bootstrap 4 to Ruby on Rails 6 Application using Webpacker and Yarn / No gem needed

preview_player
Показать описание
This video will quickly cover the setup process for Bootstrap 4 in Rails 6. There's already a video on the channel covering Bootstrap 4 in Rails 5, but this Rails 6 guide covers how to deal with the new Yarn and Webpack complications. I hope this helps .
Рекомендации по теме
Комментарии
Автор

environment.js file code:
const webpack = require("webpack")

environment.plugins.append("Provide", new webpack.ProvidePlugin({

$: 'jquery',

jQuery: 'jquery',

Popper: ['popper.js', 'default']

}))
module.exports = environment

codingtv