Skip to content

ccapndave/fuse-box-elm-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fuse-box-elm-plugin

npm license npm

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
})

About

A fuse-box plugin to transpile and bundle Elm

Resources

License

Stars

Watchers

Forks

Packages

No packages published