Node.js API

This package exposes a node module from it's root. It gives programmatic access to elm-minify for various purposes described here:

WebpackPlugin

() => Webpack Plugin

Plug elm-minify into Webpack. The plugin will, running in production mode, detect when Webpack is loading files optimized with elm-webpack-loader, and minify their content before bundling. The overhead of using this compared to the CLI is ~600 bytes for my examples. The Webpack configuration can be found here.