Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
coldtea
3y ago
0 comments
Save
Share
Quite hard. Isn't the whole point of the minification to remove non functional parts to make the size smaller?
0 comments
2 comments · 2 top-level
top
newest
oldest
zerocrates
3y 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.
bambax
3y 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
j
/
k
navigate · click thread line to collapse