3 ms·
Quite hard. Isn't the whole point of the minification to remove non functional parts to make the size smaller?
by coldtea 4y ago
Quite hard. Isn't the whole point of the minification to remove non functional parts to make the size smaller?
- zerocrates 4y agoNot 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 4y agoNot 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 https://unpkg.com/react@18.2.0/umd/react.production.min.js