Static GitHub Issues

[876] CSS of component with vue-loader is not being extracted and included

prev: Sails.js & nuxt.js ?
next: Memory leaks

Hi!

Since I'm using vue-loader to have my template, script and style in the same .vue file, I'm having an issue about the CSS generated for production because the global file includes all the CSS except the ones that are included in my components so the production build is still flashing because the CSS is being included in a JS file.

So, I want to know how to extract that CSS of those componentes to include in the global one or which method should I use in order to don't have my web page flashing.

One more thing related... using extractCSS: true is generating a file like common.764c59a21a9a8effd068.css but, how can I include this file in all the pages?

Thanks!

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c746">#c746</a>)</em></sub></div>