webpack-index-generator

0.0.1-alpha.4 • Public • Published

Webpack Index Generator

Using webpack to generatr index.js make all files under folder have only one entrance.

Usage

 
const IndexGenerator = require('./dist');
 
// webpack config
plugins: [
  new IndexGenerator({
    dir: [
      './dirPath'
    ]
  }),
],

Options of Generator

interface IndexGeneratorOptions {
  // the path of watch dir
  dir?: string[] | string;
}

Package Sidebar

Install

npm i webpack-index-generator

Weekly Downloads

2

Version

0.0.1-alpha.4

License

MIT

Unpacked Size

10.2 kB

Total Files

8

Last publish

Collaborators

  • alanzou