[fix] laravel 5.4 mix bootstrap 4 alpha.6

how to use mix with bootstrap 4 alpha 6 let’s start with file ‘package.json’ add this code below.

Once save file then use command line and wait a minute.

You can add in ‘devDependencies’ and then go to file ‘resources/assets/sass/_variables.scss’ looking for $font-size-base then change unit from ‘px’ to ‘rem’

next, open file ‘resources/assets/js/bootstrap.js’ change code ‘require(‘bootstrap-sass’)’ to ‘require(‘bootstrap’)’

Finally, open file ‘resources/assets/sass/app.scss’ looking for

@import “node_modules/bootstrap-sass/assets/stylesheets/bootstrap”;


@import “node_modules/bootstrap/scss/bootstrap.scss”;

and run command line

It should be fine.