How to remove Bootstrap correctly from Laravel 5.4? How to remove Bootstrap correctly from Laravel 5.4? laravel laravel

How to remove Bootstrap correctly from Laravel 5.4?


By default, Laravel 5.4 ships with Bootstrap and Vue.js scaffolding, but not everyone wants to use either of those technologies. With Laravel 5.5 you can run this if you don’t want any scaffolding to be generated out of the box by Laravel:

php artisan preset none


The line

require('./bootstrap')

has nothing to do with the Bootstrap CSS library. It loads the bootstrap.js file, which you will find in your assets. This file serves the purpose of "bootstrapping" your application (front-end). If you want to remove the Bootstrap CSS library from your project you should:

  • remove it from package.json
  • remove dependencies within your app layout
  • remove loading of sources from app.js / bootstrap.js


If you run "npm install" in the command line, bootstrap's sass files will be downloaded. Running "npm uninstall bootstrap-sass" afterwards will get rid of them.