[Vuejs]-Laravel Mix 4.0 can't combine global mix css with local file css

1👍

it doesn’t work because a vendors file containing style-loader and css-loader was not being created when using async imports.

This workaround worked for me:

Creating an empty init.scss file and require('../../sass/init.scss'); in your app.js at the very top seems to solve the problem.

This workaround suggests to import a blank scss file into my app.js to force style-loader and css loader to be included in the bundle.


I found about that in laravel-mix github issue when I had the same problem before.

👤senty

Leave a comment