3 ms·
The difference is whether your goal is to make the code impossible to reverse engineer, or if you're just trying to reduce the size or improve the performance o
by Ajedi32 8y ago
The difference is whether your goal is to make the code impossible to reverse engineer, or if you're just trying to reduce the size or improve the performance of the final deliverable.
The blog post explicitly calls out all of the following techniques as acceptable, for example:
> * Removal of whitespace, newlines, code comments, and block delimiters
> * Shortening of variable and function names
> * Collapsing the number of JavaScript files
- seanwilson 8y agoI read the post but seeing as the penalty for not following the guidelines is your extension being removed from the store and not all minifiers work the same way I thought some clarification would help.
- tyingq 8y agoI wonder what the policy will be when WASM gets direct DOM access. Maybe you have to include source maps at that point?
- Ajedi32 8y agoRelated question: can source maps be manipulated to hide malicious code? Source maps weren't really designed with an adversarial threat model in mind.