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.

Strip comments from production build

See original GitHub issue

Before logging an issue:

  • Ensure you have followed instructions in the README
  • Read the FAQ
  • Look through existing open and closed issues to see if someone has reported the issue before
  • Still stuck? Report a new issue

Node version: 6.6.0

npm version: 3.10.3 Operating system: Windows

Command line used: npm run build

Steps to reproduce:

my issue

Hi,

I am using react slingshot v5 (sorry it’s old i know but i didnt have time to upgrade) I am trying to add to the uglify webpack the “comments: false” to strip comments, it doesn’t work. Any idea why?

new webpack.optimize.UglifyJsPlugin({
      comments: false,
    })

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
pantchoxcommented, Oct 23, 2017

Worse it was webpack 1.x I will try after I come back from vacation and will give an update. Thanks

0reactions
nickytonlinecommented, Dec 30, 2017

OK. I’m going to close this as the latest version does not exhibit this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove comments on production build #27123 - GitHub
How would I have the comments removed on the production build? I am looking at this webpack/webpack#6879 for webpack, but don't know how...
Read more >
reactjs - Remove comments when publishing production build
Usually, Production builds removes comments. You don't need to do anything specific for this. – Anuraj. Sep 19 at 1:49.
Read more >
strip-comments - npm
Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages ......
Read more >
Create a JavaScript comments remover | by React Developer
In this article, I'll show you how to create a comment remover that will strip all single and multiple comments from all your...
Read more >
How to Remove Console Statements From Production Build in ...
This simplest practice removes console statements from the production build, leaving you with a great debugging tool during development.
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