0.0.1-alpha.4 • Published 5 years ago
webpack-index-generator v0.0.1-alpha.4
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;
}