- cd
src/ elm make Main.elm --output ../public/js/app.js --debug
- From the
publicdirectory, run a web server locally- For example,
python3 -m http.server 8000will run a local web server that serves on port 8000
- For example,
- Visit http://localhost:8000 in your browser
Another option is to use elm-live as a dev server with live reload.
- From the
srcdirectory, runelm-live Main.elm --open --pushstate --dir=../public -- --output=../public/js/app.js --debug - Visit http://localhost:8000 in your browser