- Run
npm install
. This will install the correct elm version locally and also runelm-make
as an npm postinstall hook. Whennpm install
has finished there should be a file calledelm.js
.
npm run dev
starts elm-reactor with the correct ELM_HOME set (alternatively, you could doELM_HOME=node_modules/elm/share node_modules/.bin/elm-reactor
manually).- Go to http://localhost:8000/index.debug.html.
- You now see the Elm app in the integrated Elm debugger and live reload enabled.
npm start
starts the app in "production mode" by simply building it withelm-make
and then serving it via http-server.- Go to http://localhost:8080/index.html.
- This is the "production" view. No live reload, no debugger.
- If you change the code, you need to rebuild
elm.js
by executingnpm run make
or by stopping the running http-server and executenpm start
again (which will also triggernpm run make
).