elm / compiler

Compiler for Elm, a functional language for reliable webapps.
https://elm-lang.org/
BSD 3-Clause "New" or "Revised" License
7.55k stars 662 forks source link

Allow output of html pages with the htm extension #1815

Open barsoosayque opened 6 years ago

barsoosayque commented 6 years ago

Currently (I am using Elm 0.19.0, OS is Archlinux), to generate a HTML page, I only can write a command like this:

$ elm make Main.elm --output=index.html

(Assuming that there are Main.elm and elm.json files)

However, according to fileformats, a HTML page can be with either *.html or *.htm extension. If I try to compile my elm files with --output=index.htm, I get an error indicating a bad value in --output flag.

In my current workflow, I use html / js minifier which takes only *.htm pages as an input, so it's inconvenient for me to generate "elm to html", because of the additional step of renaming the output of the elm compiler.

lydell commented 6 years ago

Which html / js minifier is that?

barsoosayque commented 6 years ago

Which html / js minifier is that?

It's juancarlospaco/css-html-js-minify.

And they also explain their decisions regarding *.htm in migration part.