elm-project-loader
Specify location of main modules to build using an elm project file.
Usage
- Install the node package
npm install elm-project-loader
- Add the
.elmproj
webpack loader.
module: loaders: test: /\.elmproj$/ loader: 'elm-project' noParse: /\.elmproj$/
- Require an elm project file
var Elm =
Project File Structure
A JSON file that specifies the location of the elm-package.json
, the main files to build, and the root of your project files.
Assuming the file structure:
/app
/src
| /elm
|---- /Components
|-------- /WidgetA
|----------- Main.elm
|-------- /WidgetB
|----------- Main.elm
|
elm-package.json
my-app.elmproj
The .elmproj file