# chirashi-loader

> Loader for advanced usage of chirashijs' repos

Latest version **2.0.1** (published 2016-11-19) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install chirashi-loader
pnpm add chirashi-loader
yarn add chirashi-loader
bun add chirashi-loader
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2016-11-19 |
| First published | 2016-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alex Toudic @AlexToudic |
| Maintainers | alex_toudic |

## Links

- npm: https://www.npmjs.com/package/chirashi-loader
- npm.io page: https://npm.io/package/chirashi-loader

## Dependencies (6)

- [babel-core](https://npm.io/package/babel-core.md) ^6.18.2
- [babel-loader](https://npm.io/package/babel-loader.md) ^6.2.8
- [chirashi-utils](https://npm.io/package/chirashi-utils.md) ^1.1.0
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.18.0
- [babel-plugin-transform-runtime](https://npm.io/package/babel-plugin-transform-runtime.md) ^6.15.0
- [babel-plugin-transform-object-rest-spread](https://npm.io/package/babel-plugin-transform-object-rest-spread.md) ^6.19.0

## Recent versions

- 2.0.1 (latest) — 2016-11-19
- 2.0.0 — 2016-11-13
- 1.1.0 — 2016-09-03
- 1.0.1 — 2016-08-22
- 1.0.0 — 2016-08-22

## README

# chirashi-loader

[![npm version](https://badge.fury.io/js/chirashi-loader.svg)](https://badge.fury.io/js/chirashi-loader)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![Code Climate](https://codeclimate.com/github/chirashijs/chirashi-loader/badges/gpa.svg)](https://codeclimate.com/github/chirashijs/chirashi-loader)
[![Issue Count](https://codeclimate.com/github/chirashijs/chirashi-loader/badges/issue_count.svg)](https://codeclimate.com/github/chirashijs/chirashi-loader)
[![Test Coverage](https://codeclimate.com/github/chirashijs/chirashi-loader/badges/coverage.svg)](https://codeclimate.com/github/chirashijs/chirashi-loader/coverage)
[![Build Status](https://travis-ci.org/chirashijs/chirashi-loader.svg?branch=master)](https://travis-ci.org/chirashijs/chirashi-loader)

### Installation

Install using npm:

```
npm i -D chirashi-loader
```

Update your Webpack config to match the following

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

Enjoy chirashi's modularity !

```js
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.

---
_Source: https://npm.io/package/chirashi-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
