https://github.com/fjc0k/generate-index-webpack-plugin
Bring VSCode extension "Generate Index" to webpack.
https://github.com/fjc0k/generate-index-webpack-plugin
generate-index webpack-plugin
Last synced: 6 months ago
JSON representation
Bring VSCode extension "Generate Index" to webpack.
- Host: GitHub
- URL: https://github.com/fjc0k/generate-index-webpack-plugin
- Owner: fjc0k
- License: mit
- Created: 2020-04-16T14:50:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-17T08:31:16.000Z (over 5 years ago)
- Last Synced: 2025-03-10T20:48:59.764Z (7 months ago)
- Topics: generate-index, webpack-plugin
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/generate-index-webpack-plugin
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# generate-index-webpack-plugin
This plugin brings VSCode extension [Generate Index](https://marketplace.visualstudio.com/items?itemName=JayFong.generate-index) to [webpack](https://webpack.js.org/).
## Install
```bash
npm i generate-index-webpack-plugin -D
```## Usage
```js
// 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