๐ I'd like my console.log statements to stay intact please ๐
See original GitHub issue๐ report
even with a .uglifyrc that looks like:
{
"compress": {
"drop_console": false
}
}
It still seems to strip console.log
statements when I run parcel build
through the CLI.
As an example, pull the console branch of this repo and run npm run build
.
The code that ends up in dist
does not include any console.log
It causes no errors, just doesnโt seem to pick up the config file at all.
Love parcel though โค๏ธ
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
console.log() - Web APIs - MDN Web Docs
The console.log() method outputs a message to the web console. The message may be a single string (with optional substitution values),ย ...
Read more >Bad idea to leave "console.log()" calls in your production ...
I'd like to just leave them there, so I don't have to go to the trouble of re-adding the comments later on if...
Read more >Please Stop Using console.log() for Debugging โ It's Broken
log () when the console is not yet active only results in a reference to the object being queued, not the output the...
Read more >Hide ๐ all console logs in production with just 3 lines of code
We basically use the console.log() in our JS application to check wether our code is working properly or to replicate the bug or...
Read more >{solved} console.log() bug problems
Error message: ... Explanation: console.log() is a function, it will log/print on the console/screen the message you put in the ( ) ....
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
I think it would make sense to change the default to be non-destructive. It certainly caught me off guard and took me a little bit to figure out. I didnโt expect minification to change behavior.
Also the config, if it exists needs to be used, but thatโs a different issue.
@devongovett @DeMoorJasper thanks! โค๏ธ