/elm-scaffold

Scaffold Elm with 0.19

Primary LanguageElm

Intro

Basically we will not use elm-reactor, but instead compile elm manually and create another index.html which link to that generated script by elm instead. Check index.html on how to proper link to generated script

Develop locally

  • install elm-live first: npm install -g elm-live
  • this will compile elm and reload on change (good for dev env): elm-live src/Main.elm -- --output=dist/main.js

Note:

  • dist/main.js will be the output, this can be changed to any folder

Production

  • compile elm to the correct location that will be served by the server: elm make src/Main.elm --output dist/main.js

  • let the server serve index.html file which has script from that generated by elm