- Run
npm install
- Run
npm run start
elm init
npm init -y
npm install --save-dev
- webpack
- webpack-cli
- webpack-dev-server
- elm
- elm-webpack-loader
- html-webpack-plugin
- file-loader (for images/assets)
- style-loader (optional)
- sass-loader (optional)
- css-loader (optional)
- node-sass (optional)
- bulma (optional)
- mini-css-extract-plugin (optional)
- Add scripts to package.json (e.g.:
"start": "webpack serve"
) - Configure
webpack.config.js
- Create an html template
./index.html
- If there's styling, create a
src/index.css
file or your chosen CSS preprocessor (src/index.sass
) - Initialize elm app in
src/index.js
. (Don't forget to import your CSS here) .gitignore
elm-stuff
,npm-modules
anddist
- Create your Main.elm module
- Run
npm run start