3 ms·
>Everything running in a browser is interpreted. That's exactly the reason for a build step. In a build step the code can be optimized to reduce and/or accele
by croes 3y ago
>Everything running in a browser is interpreted.
That's exactly the reason for a build step.
In a build step the code can be optimized to reduce and/or accelerate the code that needs to be interpreted.
- ryanbrunner 3y agoJS builds today do not appreciably accelerate code, and minimization is of marginal benefit when served assets are appropriately compressed using technologies browsers already support.
- javcasas 3y agoNo matter how fancy your compression, that code with comments stripped will compress to less bytes than the same code with comments.
- vbezhenar 3y agoNo matter how much would you try to save those 10 KB, someone will put 30 MB image file just to display tiny flag in the top right corner. Stripping comments is unnecessary optimization.