3 ms·
just one nitpick on your comment - minifiers do not replace property names, only variable names in JS
by EGreg 11y ago
just one nitpick on your comment - minifiers do not replace property names, only variable names in JS
- comex 11y agoClosure Compiler does rewrite property names in advanced mode.
- Arnavion 11y agoUglifyJS also rewrites property names if you tell it to. It's conservative so it only replaces the names you explicitly tell it to rename. Recently it gained the ability to let you give a regex, so if you have a convention of always prefixing private rename-safe properties with an underscore, you can now have those renamed.