@airy/maleo-compose-plugin
v0.2.1
Published
Compose Plugin is to make your maleo plugins config easier to read.
Downloads
8
Readme
Maleo Compose Plugin
Compose Plugin is to make your maleo plugins config easier to read.
Installation
NPM
$ npm install --save @airy/maleo-compose-plugin
Yarn
$ yarn add @airy/maleo-compose-plugin
How To Use
Basic Usage
Add the plugins you use to your maleo.config.js
Wrap the plugins under compose plugin function. For example:
// maleo.config.js
const cssPlugin = require('@airy/maleo-css-plugin');
const typescriptPlugin = require('@airy/maleo-typescript-plugin');
// add this
const compose = require('@airy/maleo-compose-plugin');
module.exports = compose([
[typescriptPlugin, { /* typescript plugin option */ }],
[cssPlugin, { /* css plugin option */ }],
],
{
/* your config for maleo */
webpack(config, context, next) {
// your custom webpack config
return next()
}
}
);