parcel-plugin-vue
parcel-plugin-vue copied to clipboard
Support CSS Extraction
This is a great plugin of parcel bundler, but I want extracting all component CSS into a single file for better performance. How can I do that?
@masonz Thank you for your compliment, I will do it as soon as possible.
@lc60005457 I'm very glad to hear that, I will continue keep to pay attention.
@masonz I published the '[email protected]'.
You can make a file named 'vue.config.js', edit and save it
module.exports = { // If extractCSS is always true, the 'Hot module replacement' will not work. extractCSS: process.env.NODE_ENV === 'production' };
For other attributes of 'vue.config.js', you can refer to https://github.com/vuejs/vueify#configuring-options
@lc60005457 Thanks for quickly handle. It's work fine in Demo. But I tried to build with this feature and code splitting, it loses the lazy loading module. My project at here.
I will waiting for https://github.com/parcel-bundler/parcel/issues/294
Sorry, go on waiting for https://github.com/parcel-bundler/parcel/issues/481
CSS Extraction failed in [email protected]
@ConandSherry CSS Extraction fixed in #27.
@BoltDoggy I think this problem has been fixed in #25. You can close the Issue at the next release.