Webpack loader for the Elm programming language. Version 8.0.0 supports Webpack 5. Actively maintained by elm-community. Tracks Elm dependencies and watches them in watch mode. Recommended to set cwd option to the directory containing elm.json. Supports debug and optimize modes, runtime options for profiling, and multiple file bundling. Peer dependency on Elm 0.19.1-3 or 0.19.0-no-deps.
npm install elm-webpack-loaderVerified import paths — ran on the pinned version, not inferred.
Minimal webpack configuration to process Elm files using elm-webpack-loader with the recommended cwd option.
Upgrade to Webpack 5.
Replace pathToElm with cwd option.
Set cwd to the directory containing elm.json.
Use object-style configuration for loader options.
Build elm-make from source with -rtsopts flag.
Run 'npm install --save-dev elm' to install elm package.
Add the elm-webpack-loader rule to webpack configuration.
Install elm as a dev dependency: 'npm install --save-dev elm'.