fuse-box-elm-plugin
v2.2.0
Published
A plugin for fuse-box for transpiling and bundling Elm programs
Downloads
20
Readme
fuse-box-elm-plugin
A plugin for fuse-box that transpiles and bundles Elm code.
Installation
npm install fuse-box-elm-plugin --save-dev
Usage
Simply put ElmPlugin
in
import { ElmPlugin } from "fuse-box-elm-plugin"
const fuse = FuseBox.init({
plugins: [
ElmPlugin()
]
)};
Then import "./Main.elm"
in your entry file and Fusebox will figure out the rest.
Options
ElmPlugin({
warn: true,
debug: true
})
Uglifying
This plugin implements the specific arguments that need to be passed to uglify-js
(actually we use terser
) in order to minify an optimized Elm file. To turn this on use:
ElmPlugin({
optimize: true,
uglify: true
})