Start/end ignore comments not detected when they don't precede a rule
See original GitHub issueFirst of all, thank you so much for developing my feature request (#66). It works great in most cases, but I just found an issue with it. It seems the /*! purgecss start ignore */
comment is ignored if it’s the first line in the CSS file, so the block isn’t ignored. I’m using Laravel Mix with the laravel-mix-purgecss
plugin. Let me know if you need any more information. Thank you!
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
Extensible Markup Language (XML) 1.0 (Fifth Edition) - W3C
[Definition: Markup takes the form of start-tags, end-tags, empty-element tags, entity references, character references, comments, CDATA section ...
Read more >perl-best-practices - Perltidy - SourceForge
Execute perltidy on file somefile.pl, with 3 columns for each level of indentation (-i=3) instead of the default 4 columns. There will not...
Read more >Update to the Regulations Implementing the Procedural ...
The Council on Environmental Quality (CEQ) issues this final rule to ... For example, CEQ has found that NEPA reviews for Federal Highway ......
Read more >Regular Expressions :: Eloquent JavaScript
When using the RegExp constructor, the pattern is written as a normal string, so the usual rules apply for backslashes. The second notation,...
Read more >Comments in Code - Visual Basic | Microsoft Learn
This symbol tells the Visual Basic compiler to ignore the text following it, ... Visual Basic does not enforce rules for adding comments....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
add ! after /*
These works on webpack 4
I read on cssnano docs on how to preserve the comments https://cssnano.co/optimisations/discardcomments/
@Remeic Just ran into this. My issue was that cssnano was running before PurgeCSS and stripping out comments.