Minify
Minify, in computing, refers to the process of removing all unnecessary characters from source code, markup, or data so that it remains functionally equivalent but requires fewer bytes to transmit or store. The goal is to reduce file size to improve load times, bandwidth usage, and performance in web and software applications. Typical reductions include removing whitespace, comments, unused code, and line breaks, as well as shortening variable names and sometimes reformatting code in safe ways that preserve behavior.
Minification is commonly applied to JavaScript, CSS, HTML, JSON, and SVG files. In JavaScript, minifiers perform
Minification is typically integrated into build pipelines and asset pipelines using specialized tools. Examples include Terser