1.0.1 • Published 4 years ago

generate-index-webpack-plugin v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

generate-index-webpack-plugin

This plugin brings VSCode extension Generate Index to webpack.

Install

npm i generate-index-webpack-plugin -D

Usage

// 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',
      ],
    }),
  ],
}

License

Jay Fong (c) MIT