This plugin brings VSCode extension Generate Index to webpack.
npm i generate-index-webpack-plugin -D
// webpack.config.js
const GenerateIndexPlugin = require('generate-index-webpack-plugin')
module.exports = {
plugins: [
new GenerateIndexPlugin({
// index file paths
patterns: [
'src/assets/all.js',
'src/**/index.{js,ts}',
'!src/**/ignore/index.js',
],
}),
],
}
Jay Fong (c) MIT