To use Bootstrap 4, which is in beta at the moment of writing, you will need to take the following steps:
- run
npm install bootstrap@4.0.0-beta.2 --save-dev
to install/overwrite the latest version - change
require('bootstrap-sass')
torequire('bootstrap')
in your bootstrap.js file - change
@import "~bootstrapsass/assets/stylesheets/bootstrap";
to@import"~bootstrap/scss/bootstrap";
in your app.scss file. Also make sure to remove the reference to variables since these will not work with BS4 - run
npm run dev
in the command line to generate the .css and .js file
Please be aware that the scaffolded auth templates will break due to new class names in BS4.
No comments:
Post a Comment