fuse-box-elm-plugin
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i fuse-box-elm-plugin

Weekly Downloads

0

Version

2.2.0

License

ISC

Unpacked Size

16 kB

Total Files

7

Last publish

Collaborators

  • devdave