https://github.com/aribouius/webpack-plugin-manifest
Webpack plugin for generating asset manifests
https://github.com/aribouius/webpack-plugin-manifest
json manifest webpack webpack-plugin
Last synced: about 1 year ago
JSON representation
Webpack plugin for generating asset manifests
- Host: GitHub
- URL: https://github.com/aribouius/webpack-plugin-manifest
- Owner: aribouius
- License: isc
- Created: 2016-03-18T06:23:55.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-15T05:23:11.000Z (about 9 years ago)
- Last Synced: 2024-04-26T10:03:29.264Z (about 2 years ago)
- Topics: json, manifest, webpack, webpack-plugin
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-plugin-manifest
Webpack plugin for generating asset manifests.
## Features
Generates a JSON manifest file that maps chunk names to their corresponding output files.
## Installation
```bash
$ npm i --save webpack-plugin-manifest
```
## Usage
Add new plugin instance to your `webpack` config
```javascript
import ManifestPlugin from 'webpack-plugin-manifest'
const compiler = webpack({
// ...
plugins: [
new ManifestPlugin()
]
})
```
## Configuration
The plugin accepts the following options:
- `path`: Where to save the manifest. Defaults to Webpack output path.
- `fileName`: Name of the generated manifest file. Defaults to `webpack-manifest.json`.
- `merge`: Indicates whether to merge with existing manifest. Defaults to `false`.
- `extensions`: An array of allowed file extensions. Defaults to `['.js', '.css']`.
- `prettyPrint`: Whether to format the JSON output for readability. Defaults to `false`.
### License
MIT