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 aren't stripped

See original GitHub issue

🐛 bug report.

🎛 Configuration package.json

npx parcel build index.html

🤔 Expected Behavior

Production build should output smallest file possible.

😯 Current Behavior

In production build there still are my silly comments.

🌍 Your Environment

Software Version(s)
Parcel 1.5.0
Node 8.9.4
npm/Yarn npm 5.6.0
Operating System macOS 10.13.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jvanderen1commented, Jan 16, 2022

I still see this issue as of "parcel": "^2.0.0-nightly.980".

3reactions
bledaricommented, Apr 11, 2020

I think this should be reopened. My CSS comments weren’t deleted after building for production. example: /* !display: block;!/ / !width: 139.3px;!/ / !left: 0px;!*/

These may seem like non standard but are Intellij way of commenting comments and should be supported

Read more comments on GitHub >

github_iconTop Results From Across the Web

Comments are not stripped form commit template - TortoiseGit
I would expect that comments are stripped from the commit message / template when committing, just like when committing from the command line....
Read more >
Unable to strip comments in webpack bundle js file
I have been trying to strip comments in the webpack bundled js file. I have tried several methods but it's not working still...
Read more >
Comments - Sass
By default, multi-line comments be stripped from the compiled CSS in compressed mode. If a comment begins with /*! , though, it will...
Read more >
HTML comments getting stripped on one vhost but not the rest
So I have multiple vhosts. The one that my main site is on has HTML comments all stripped for the client, but the...
Read more >
Utility to Strip Comments from LaTeX Source - TeX
The following code (similar to what I posted yesterday) will not eat commented lines that appear within a verbatim environment. Here is the ......
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