Simple Elm production builds

As stated in the Elm tutorial.

The Elm reactor is great for prototyping simple applications, but for a bigger app it falls short.

To easily get a production quality build for your Elm application you can use Neutrino a fantastic tool by Mozilla for building application using Webpack.

By default, Neutrino will look for your application entry point at src/index.js, so we’ll need to ensure we mount the Elm application in that file.

Next make sure to tell your Elm application to load the Elm files from the src directory.

Finally, tell neutrino to use the neutrino-preset-elm package and add some convenience scripts.

That’s it you can start the development server using npm start, or make a production build using npm run build.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.