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

preventing duplicated imports #30

Closed
jeffling opened this issue Nov 8, 2014 · 1 comment
Closed

preventing duplicated imports #30

jeffling opened this issue Nov 8, 2014 · 1 comment

Comments

@jeffling
Copy link

jeffling commented Nov 8, 2014

Hi, we're trying to keep things completely modular and have each component declaratively import everything it needs. This causes things to be put into style.css multiple times (using extractTextPlugin), giving us a huge css file.

Is there any way of preventing this? I tried using scss-only hacks, like in https://github.com/zurb/foundation/blob/1a45d92be8af20bf6b3e8d28c12fdbc853205cce/scss/foundation/_functions.scss , but because sass loader is running node-sass afresh each scss that's required, the map in sass is not persisted.

@jeffling
Copy link
Author

#31 would solve this but it's a ways off. I ended up making sure that only mixins and variables and other pure sass code are used for imports.

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

1 participant