0.2.0 • Published 4 years ago

@peajs/types v0.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

@pea/types

Installation

npm i @peajs/types

Api

IPlugin

import { IPlugin } from '@peajs/types'
import { Configuration } from 'webpack'

export default class MyPlugin implements IPlugin {
  updateWebpackConfig(config: Configuration) {
    // Do something
    const newConfig = handle(config)
    return newConfig
  }
}

PeaConfig

import { PeaConfig } from '@peajs/types'
import LessPlugin from 'pea-plugin-less'

const config: PeaConfig = {
  plugins: [new LessPlugin()],
}

export default config

License

MIT License