What's the best way that when you run
elm make Main.elm --output elm.js
The output Javascript file is already minified?
question from:https://stackoverflow.com/questions/65644315/auto-minify-output-javascript-file-on-elm-makeWhat's the best way that when you run
elm make Main.elm --output elm.js
The output Javascript file is already minified?
question from:https://stackoverflow.com/questions/65644315/auto-minify-output-javascript-file-on-elm-makeThe elm make
command cannot do this for you. However, you can simply run a minifier on the output.
Check out the optimization hint for examples: https://github.com/elm/compiler/blob/master/hints/optimize.md
Also don't forget to add --optimize
to elm make
when building for production.