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.

Comments in @import-ed files are being inappropriately suppressed

See original GitHub issue

In @imported .styl files, all block comments are being suppressed in the output.

There’s a closed issue for that https://github.com/LearnBoost/stylus/issues/444 from 2 years ago but It’s still not working.

I’ve created a repo to show this scenario: https://github.com/vitormil/stylus-comment-bug

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
riemeriocommented, Mar 1, 2016

Is there a working solution without explicitly mark comments like /*! */ ? Like @dpanov I am working with the sc5 styleguide where I urgently need comments from imported/required .styl files for my styleguide documentation.

The problem with /*! */ is that the stylus compiler can’t remove them in further build tasks for production. So I need another CSS minifier to remove the persisted comments.

I would suggest an additional build flag to remove persisted comments /*! */ as well if it is needed.

1reaction
dpanovcommented, Mar 7, 2014

Guys, this is really causing problems when a documentation like Kalei (http://kaleistyleguide.com/) is used. It uses comments in order to generate a style documentation. In my case, I use Grunt to generate two files. One of the files is compressed and doesn’t have comments - this is the file that gets loaded on the website. The second CSS file is not compressed and it has comments. The style guide reads the uncompressed file and builds a documentation from it.

It’s not acceptable to use suppressed comments, because they will appear in the compressed file as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Comments in @import-ed files are being suppressed · Issue #444 ...
In @imported .styl files, all block comments that are not inside a selector are being suppressed in the output. Nope, not using compression...
Read more >
Any update on exclusion/suppression list functiona... - 341196
When a contact unsubscribes or opts-out of your mailing list, our system automatically removes them from your active contact list. Not only this,...
Read more >
Manage Suppression Lists - Genesys Documentation
Suppression lists contain contact information for those who do not want to be contacted. Key features of a suppression list:.
Read more >
How to suppress a certain warning in Spyder editor?
You need to go to. Tools > Preferences > Editor > Code Introspection/Analysis. and deactivate the option called. Real-time code analysis.
Read more >
Excluding and suppressing software instances
They are also listed in the audit snapshot, together with exclusion comments. Suppression: Suppress a component when it is improperly discovered. For example, ......
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