webpack-index-generator
v0.0.1-alpha.4
Published
Generate index.js make only one entrance.
Downloads
7
Readme
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;
}