proto-webpack-plugin

1.0.1 • Public • Published

Proto Webpack Plugin

Resolve all proto files in resolve dir and subdirectores and create bundle file. Match all proto files by default or to minimise bundle size use matchNames to pick required files

Install

npm install --save-dev proto-webpack-plugin

Usage

var ProtoWebpackPlugin = require('proto-webpack-plugin')
 
module.exports = {
  plugins: [
    new ProtoWebpackPlugin({
      resolveDir: resolve('/src/statics/proto'),
      outputFile: resolve('/src/statics/proto-bundle.js'),
      matchNames: ['base', 'messages'] // optional
    })
  ]
}

Readme

Keywords

Package Sidebar

Install

npm i proto-webpack-plugin

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • ebartlomiej