aem99's avatar
Level 3

Mix extract with vue dynamic import

Hi,

I am using mix v5 with the extract option to split my code. This is working great and with no issues, but once I dynamically import vue components it breaks. The build itself goes with no errors, but when I view the resulting site, It looks like this And when I try just dynamic importing it goes back to work normally. Not sure what is happening.

0 likes
2 replies
aem99's avatar
Level 3

So the issue is that when I use the extract flag, it produces an empty css file. Not sure if anyone have been able to fix that

hollyit's avatar
hollyit
Best Answer
Level 8

There's an issue with Mix and dynamic imports and if memory serves, it seems like doing extract really triggered it. There won't be a fix for it until Webpack 5 is released, which is supposed to be sometime in 2020.

https://laravel-mix.com/docs/5.0/upgrade

Please or to participate in this conversation.