[Vuejs]-Remove Laravel/Vue bootstrap CSS

3👍

You could simply remove everything from the resources/sass/app.scss file.

2👍

In your terminal type

  php artisan preset none

It will remove Vue.js and Bootstrap from your application.

Reference: https://laravel.com/docs/5.8/frontend

0👍

This doesn’t work for laravel 7.x and above. The command preset no longer exists. When trying different combinations to make php artisan ui <type> --auth work without installing react, vue, or bootstrap, I realized what the error actually meant and how the source code is written. Looks like there’s no choice but to choose one of the three options. Take a look at the source code snippet below. This means there’s no option for entering something like php artisan ui none --auth. Additionally, entering php artisan ui vue --auth or php artisan ui react --auth installs bootstrap as well as the UI framework.

         if (! in_array($this->argument('type'), ['bootstrap', 'vue', 'react'])) {
  > 41|             throw new InvalidArgumentException('Invalid preset.');
    42|         }

Leave a comment