Skip to content

Commit

Permalink
Tweak stubs for Mix 6 (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay authored Jan 6, 2021
1 parent ff4e6ee commit a1f82c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Presets/react-stubs/webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ const mix = require('laravel-mix');
|
*/

mix.react('resources/js/app.js', 'public/js')
mix.js('resources/js/app.js', 'public/js')
.react()
.sass('resources/sass/app.scss', 'public/css');
2 changes: 1 addition & 1 deletion src/Presets/vue-stubs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

require('./bootstrap');

window.Vue = require('vue');
window.Vue = require('vue').default;

/**
* The following block of code may be used to automatically register your
Expand Down
1 change: 1 addition & 0 deletions src/Presets/vue-stubs/webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ const mix = require('laravel-mix');
*/

mix.js('resources/js/app.js', 'public/js')
.vue()
.sass('resources/sass/app.scss', 'public/css');

0 comments on commit a1f82c6

Please sign in to comment.