-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
SASS loader duplicates CSS styles styles #5057
Comments
Actually this appears to not be an issue with Element. It exposes it because it
You then get two copies of the |
Well if you include duplicate styles, you will have duplicate styles. You can probably config cssnano to remove duplicates during minification I'd it doesn't do that already. We can't do much about this. |
Yeah fair enough - this seems to be an inherent flaw in the was Sass works. The Chalk theme people get around it by running the output through |
Just to repeat : we already miniy css during Might be worth looking into before you add another tool to the chain |
Version
4.1.0
Reproduction link
https://github.com/Timmmm/vue_sass_issue.git
Environment info
Steps to reproduce
What is expected?
el-input should have one style applied
What is actually happening?
You get approximately 6 copies of the Element styles applied to the el-input element. This shows the first two duplicates but you can scroll down and there are loads more:
The text was updated successfully, but these errors were encountered: