Skip to content

ianva/generate-index-webpack-plugin

 
 

Repository files navigation

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

About

Bring VSCode extension "Generate Index" to webpack.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 88.1%
  • JavaScript 11.9%