megaman7's avatar

vue default

the default app.js has window.Vue = require('vue');

This means mix wont run until it is removed if vue is not being used.

Perhaps this should be changed in future versions of laravel and vue is far from the only major javascript framework (both react and angular are more popular) and many projects do not require a JS framework at all. a person should not need to comment out this line before mix will work.

(incidentally vue is also included in package.json by default)

0 likes
1 reply
tykus's avatar

Have a look at presets; this will get rid of all of the Vue-related boilerplate

php artisan preset none

You can specify a different type from the options: the built-in defaults are none, bootstrap, vue, react, while third parties have written other presets.

Please or to participate in this conversation.