Y
Hacker News
new
|
ask
|
show
|
jobs
by
coldtea
1287 days ago
Quite hard. Isn't the whole point of the minification to remove non functional parts to make the size smaller?
2 comments
zerocrates
1287 days ago
Not really hard... for one there's a convention of putting an exclamation point at the start of comments that should survive the minification/compilation process, for this very purpose.
link
bambax
1287 days ago
Not hard at all. A couple of comments won't make any difference. Here's the minified version of one of react components for example:
https://unpkg.com/react@18.2.0/umd/react.production.min.js
link