Skip to content
This repository has been archived by the owner on Jun 3, 2018. It is now read-only.

Support CSS Extraction #7

Open
masonz opened this issue Dec 20, 2017 · 9 comments
Open

Support CSS Extraction #7

masonz opened this issue Dec 20, 2017 · 9 comments

Comments

@masonz
Copy link

masonz commented Dec 20, 2017

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?

@BoltDoggy
Copy link
Owner

@masonz Thank you for your compliment, I will do it as soon as possible.

@masonz
Copy link
Author

masonz commented Dec 20, 2017

@lc60005457 I'm very glad to hear that, I will continue keep to pay attention.

@BoltDoggy
Copy link
Owner

@masonz I published the 'parcel-plugin-vue@1.4.0'.

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

@masonz
Copy link
Author

masonz commented Dec 20, 2017

@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.

@BoltDoggy
Copy link
Owner

I will waiting for parcel-bundler/parcel#294

@BoltDoggy
Copy link
Owner

Sorry, go on waiting for parcel-bundler/parcel#481

@ConandSherry
Copy link
Contributor

CSS Extraction failed in parcel@1.5.0

@masonz
Copy link
Author

masonz commented Feb 27, 2018

@ConandSherry CSS Extraction fixed in #27.

@masonz
Copy link
Author

masonz commented Feb 27, 2018

@BoltDoggy I think this problem has been fixed in #25. You can close the Issue at the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants