Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting only used CSS #944

Closed
mbulfair opened this issue May 29, 2019 · 2 comments
Closed

Exporting only used CSS #944

mbulfair opened this issue May 29, 2019 · 2 comments

Comments

@mbulfair
Copy link

Question:
I am not sure this is the correct loader, but when you have css modules enabled. Isn't it supposed to only "import" the css classes imported into a JS component? Unless it has :global on it? I'm asking because when doing a production build, the entire file is being extracted (mini-css-extract). While I'm using (webpack development) the style blocks only show the css I am importing. What am I missing here? Any help or guidance would be greatly appreciated.

@alexander-akait
Copy link
Member

Duplicate #506, it is feature

@alexander-akait
Copy link
Member

And no supported right now

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

No branches or pull requests

2 participants