Compress your code for bootloader.art and save on minting fees
Every byte saved makes it less expensive to mint your piece on bootloader.art. Smaller files mean lower transaction costs and faster loading times for your generative art projects.
Optimize your code by reusing functions, deleting unused code, avoiding redundant imports, and using shorter variable names. Then use bootloader:minifier for final compression to achieve maximum file size reduction.
bootloader:minifier uses Terser under the hood - the industry-standard JavaScript minifier. Terser is the same tool used by major bundlers like Webpack, Rollup, and Vite to optimize production JavaScript code.
Safe Mode applies conservative optimizations that preserve code behavior. Maximum Compression uses aggressive optimizations that may break code relying on specific JavaScript behaviors - always test thoroughly when using this mode.
Safe Mode rarely breaks code, but Maximum Compression can break code that uses dynamic property access, relies on function names, or depends on specific JavaScript behaviors. Always test your minified code before deploying.