-
-
Notifications
You must be signed in to change notification settings - Fork 608
Multi entrypoint styles duplication with preprocessors like stylus #1207
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
Comments
Or is it a bug in extract-css-chunks-webpack-plugin? |
Yes, it is bug on extract-css-chunks-webpack-plugin side, I recommend to use |
I get the same output with |
Okay, I will look at this in near future, but mostly it is configuration problems, or you duplicate modules |
My actual result is: .box{border-width:2px;border-style:solid;padding:0 20px;margin:0 6px;max-width:400px}
.box,.child{border-width:2px;border-style:solid;padding:0 20px;margin:0 6px;max-width:400px}.child{border-style:dotted;border-color:#008000}
.box,.test{border-width:2px;border-style:solid;padding:0 20px;margin:0 6px;max-width:400px}.test{border-color:#f00} No problems, look at |
I expected to see this result: single entry |
@midnightcoder-pro you need to setup minificator https://github.com/webpack-contrib/css-minimizer-webpack-plugin, CSS minification is out of scope |
In my opinion, this is a loss of context, not a minimization task. Stylus doesn't know anything about entry points and processes them separately. |
@midnightcoder-pro #1207 (comment) it is what |
But this part is handled by import './parent.styl'
import './child.styl'
import './test.styl' Aren't these three separate launches of the |
What is the problem? We handle CSS returned from |
Is it |
This is a problem neither .box{border-width:2px;border-style:solid;padding:0 20px;margin:0 6px;max-width:400px}
.box,.child{border-width:2px;border-style:solid;padding:0 20px;margin:0 6px;max-width:400px}.child{border-style:dotted;border-color:#008000}
.box,.test{border-width:2px;border-style:solid;padding:0 20px;margin:0 6px;max-width:400px}.test{border-color:#f00} was returned from |
Okay, thanks |
Uh oh!
There was an error while loading. Please reload this page.
Expected Behavior
Actual Behavior
How Do We Reproduce?
Repo
The text was updated successfully, but these errors were encountered: