This package has been deprecated

Author message:

please update to webpack +2.0 to benefit from tree shaking without this module

chirashi-loader

2.0.1 • Public • Published

chirashi-loader

npm version Standard - JavaScript Style Guide Code Climate Issue Count Test Coverage Build Status

Installation

Install using npm:

npm i -D chirashi-loader

Update your Webpack config to match the following

{
    test: /\.js$/,
    loader: 'babel!chirashi',
    include: projectRoot,
    exclude: /node_modules\/(?!chirashi).+/
}

Enjoy chirashi's modularity !

import { addClass, on } from 'chirashi'

let sashimies = addClass('.sashimi', 'salmon')

on(sashimies, {
  click(event) {
    addClass(event.currentTarget, 'soy-sauce')
  }
})

In this example, chirashi-loader will allow to generate a custom build on the fly featuring only the needed files.

Readme

Keywords

none

Package Sidebar

Install

npm i chirashi-loader

Weekly Downloads

2

Version

2.0.1

License

MIT

Last publish

Collaborators

  • alextoudic