What's the best way that when you run
elm make Main.elm --output elm.js
The output Javascript file is already minified?
The elm make command cannot do this for you. However, you can simply run a minifier on the output.
elm make
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.
--optimize
1.4m articles
1.4m replys
5 comments
56.9k users