Home

Awesome

webpack-blocks - Elm

Build Status Gitter chat JavaScript Style Guide NPM Version

This is the elm block providing Elm configuration using the elm-webpack-loader.

Usage

const { createConfig } = require('@webpack-blocks/webpack')
const elm = require('@webpack-blocks/elm')

module.exports = createConfig([
  elm(/* options */)
])

You can use match() to customize which files to load using the elm loader.

Options

maxInstances (optional)

Number uset to set maxInstances of elm that can spawned. This should be set to a number less than the number of cores your machine has. The ideal number is 1, as it will prevent Elm instances causing deadlocks.

cwd (optional)

String which specify a custom location within your project for your elm files.

webpack-blocks

Check out the

👉 Main documentation

Released under the terms of the MIT license.