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

Imported dependancies loaded more than once causing redundant styles. #9

Open
jesselee34 opened this issue Mar 26, 2016 · 1 comment

Comments

@jesselee34
Copy link

I would have expected the tool to manage less files that are imported by several different modules so that a particular less module would only be loaded once.

For instance: I have two components say fooView.js and barView.js. They both have corresponding .less files. Each one of those less files depends on fonts.less and so it is imported in both. Now the CSS from fonts.less is in two separate style tags in the DOM.

Is this expected, or am I doing something wrong?

@dstokes
Copy link
Owner

dstokes commented Mar 28, 2016

Deduping less dependencies is not supported in the current version of
lessify. I'd be happy to merge and publish a new version implementing the
optimization though!

On Saturday, March 26, 2016, Jesse Lee Schmucker notifications@github.com
wrote:

I would have expected the tool to manage less files that are imported by
several different modules so that a particular less module would only be
loaded once.

For instance: I have two components say fooView.js and barView.js. They
both have corresponding .less files. Each one of those less files depends
on fonts.less and so it is imported in both. Now the CSS from fonts.less is
in two separate style tags in the DOM.

Is this expected, or am I doing something wrong?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#9

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