Post Top Ad

Monday, November 27, 2017

Laravel 5.5 with Boostrap 4.0.0-beta.2 (100% work)




To use Bootstrap 4, which is in beta at the moment of writing, you will need to take the following steps:
  1. run npm install bootstrap@4.0.0-beta.2 --save-dev to install/overwrite the latest version
  2. change require('bootstrap-sass') to require('bootstrap') in your bootstrap.js file
  3. 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
  4. 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