Skip to content

Commit

Permalink
Add webpack configuration to fix laravel mix compilation issue
Browse files Browse the repository at this point in the history
See vuejs/pinia#1199 for details
  • Loading branch information
guergana committed Oct 12, 2023
1 parent 2b80a90 commit 2d3f75c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ const mix = require('laravel-mix');

mix.ts('resources/js/app.ts', 'public/js')
.vue({ version: 2 })
.webpackConfig({
module: {
rules: [
{
test: /\.mjs$/i,
},
],
},
})
.sass('resources/sass/app.scss', 'public/css')
.sass('resources/sass/noscript.scss', 'public/css')
.copyDirectory('resources/img', 'public/images')
Expand Down

0 comments on commit 2d3f75c

Please sign in to comment.