Closed BrianLangevin closed 5 years ago
My components are written in standard JS and having the same issue. This feels like a moderately new issue - my 6 month and older projects are not having an issue like this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Any chance we can re-open this issue? I'm experiencing it as well. Did @BrianLangevin or @CalebJTSmith ever find a work around?
I'm using laravel-mix 2.1.14
, node v8
, npm v5
@jakedowns if I remember right, I resolved the issue by adding the style tag at the very top of the single file component. Something with the vue-template-compiler
had changed - I used to have my styles at the bottom of the component.
Thanks for the reply, @CalebJTSmith !
I tried that and unfortunately, that didn't seem to resolve the issue, tho. :/
Description:
When building for production (
npm run prod
), styles in single component Vue templates are not included in the final bundle. When building a development bundle (npm run dev
), everything works as expected.The same issue occurs whether
extractVueStyles
is enabled or not.All of my Vue components are written in Typescript, and all of my styles are written in Sass.
webpack.mix.js file:
package.json dependencies:
Steps To Reproduce:
run
npm run prod