question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

By using this module, one piece of CSS code exists both in HTML and in JavaScript. Besides, all require mentioned CSS stays in JavaScript. The module itself create duplicates (and make HTML much bigger).

<bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/30855681-css-duplicates?utm_campaign=plugin&utm_content=tracker%2F26439769&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F26439769&utm_medium=issues&utm_source=github). </bountysource-plugin>

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
alex-shamshurincommented, Nov 11, 2016

Dublicating styles makes developing and css debugging aanoying. If styles were inserted on server side in the head of the page, why component inserts this again if page already has it? All my styles are repeated twice, is that normal?

2reactions
alex-shamshurincommented, Dec 27, 2017

I move styles of repeated components to parent component (container) in order to include it just once. it will be nice if the library take care of this automaticlally

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove the Duplicated CSS classes from entire Application
Remove the Duplicated CSS classes from entire Application · Go to extensions tab (Ctrl + Shift+ X). · Search with “DupChecker” and install...
Read more >
How to check for duplicate CSS rules? - Stack Overflow
Is there any way/tool that would take my css file as input and check for all the duplicate rules? and possibly generate a...
Read more >
How can you identify duplicate CSS rules?
Just updated our tool, you can use it to remove the duplicates, then view the report to see the list of duplicate rules...
Read more >
DRY CSS: How to Use Declarations Just Once, Effectively
Dissolve duplicate declarations: Check each declaration (in new style sheets) or each changed declaration for re-occurrence within the set ...
Read more >
postcss-discard-duplicates - npm
Discard duplicate rules in your CSS files with PostCSS.. Latest version: 5.1.0, last published: 10 months ago.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found