Y
Hacker News
new
|
ask
|
show
|
jobs
by
ep103
3901 days ago
no, just minimize your code prior to production, and that'll rip out the comments. That's been best practice for years.
2 comments
nacs
3901 days ago
> just minimize your code prior to production
In frontend JS code sure, but minifying backend node.js code is certainly not "best practice".
link
draperp
3901 days ago
Exactly. And if you did, you would have to look at source maps to decode your stack traces.
link
lostPixels
3901 days ago
No one minifies NodeJS code. The reduced file-size of minified JS is irrelevant on the server.
link
In frontend JS code sure, but minifying backend node.js code is certainly not "best practice".