Imported dependancies loaded more than once causing redundant styles.
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
Research direction
Reproduce the case using fooView.js and barView.js, whose corresponding .less files both import fonts.less, then inspect the generated style tags in the DOM. Read the import handling around these files and determine whether fonts.less is emitted more than once; done means its CSS is emitted only once when shared by both modules.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- JavaScript
- Stars
- 12
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dstokes/lessify
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·