Strip comments from production build
See original GitHub issueBefore 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:
- Created 6 years ago
- Comments:8
Top 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 >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 FreeTop 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
Top GitHub Comments
Worse it was webpack 1.x I will try after I come back from vacation and will give an update. Thanks
OK. I’m going to close this as the latest version does not exhibit this issue.