cush-plugin-nebu

0.1.0 • Public • Published

cush-plugin-nebu v0.1.0

An alternative to Babel for plugins that transform Javascript.

Learn more

Configuration

Each package can have its own nebu.config.js module that customizes its plugins and other options.

Your cush.config.js module can configure the nebu.plugins property too, but it needs to be in a worker first.

this.worker(function() {
  this.merge('nebu.plugins', [
    // nebu plugins go here
  ]);
});

The "nebu" hook provides access to the state of each asset after its plugins are used.

// cush.config.js
this.worker(function() {
  this.hook('nebu', (asset, state) => {
    // The state is unique to each asset and updated by nebu plugins.
  });
});

Readme

Keywords

none

Package Sidebar

Install

npm i cush-plugin-nebu

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

2.9 kB

Total Files

4

Last publish

Collaborators

  • aleclarson