minify
GitHub describes it as :scissors: An ES6+ aware minifier based on the Babel toolchain (beta). The repository metadata lists JavaScript as its primary language. The metadata lists the MIT license. This article stays within the project description and details documented in the GitHub repository README.
babel/minify: README details
GitHub describes it as :scissors: An ES6+ aware minifier based on the Babel toolchain (beta). The repository metadata lists JavaScript as its primary language. The metadata lists the MIT license. This article stays within the project description and details documented in the GitHub repository README.
Repository scope
GitHub describes it as :scissors: An ES6+ aware minifier based on the Babel toolchain (beta). The repository metadata lists JavaScript as its primary language. The metadata lists the MIT license. The README describes the project this way: - babel-minify is consumable via API, CLI, or Babel preset. Try it online - babeljs.io/repl%20%7B%0A%20%20%20%20this.program%20%3D%20program%3B%0A%20%20%7D%0A%7D%0Anew%20Mangler()%3B%20%2F%2F%20without%20this%20it%20would%20just%20output%20nothing%20since%20Mangler%20isn%27t%20used)
Experimental
The README section "Experimental" states: babel-minify is an experimental project that attempts to use Babel's toolchain (for compilation) to do something in a similar vein, minification. It's currently in 0.x, so we don't recommend using it in production.
Why
The README section "Why" states: Current tools don't support targeting the latest version of ECMAScript. (yet) - BabelMinify can because it is just a set of Babel plugins, and Babel already understands new syntax with our parser Babylon. - When it's possible to only target browsers that support newer ES features, code sizes can be smaller because you don't have to transpile and then minify.
Babel preset
The README section "Babel preset" states: | Package | Version | Dependencies | |--------|-------|------------| | babel-preset-minify | | |
Editorial conclusion
The repository README is the source for this review. It does not replace a local installation or an independent test.
Community notes