https://github.com/practo/manifest-revision-formatter-webpack
Overridden formatter fn. for manifest rev plugin available for webpack
https://github.com/practo/manifest-revision-formatter-webpack
Last synced: 3 months ago
JSON representation
Overridden formatter fn. for manifest rev plugin available for webpack
- Host: GitHub
- URL: https://github.com/practo/manifest-revision-formatter-webpack
- Owner: practo
- License: mit
- Created: 2017-04-17T06:20:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-08-04T18:48:11.000Z (almost 7 years ago)
- Last Synced: 2026-01-01T21:32:38.278Z (6 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Manifest revision formatter for [this plugin](https://github.com/nickjj/manifest-revision-webpack-plugin)
Override the default formatter available in the plugin to output asset keys with their `paths` intact
# Usage
```javascript
const ManifestRevisionPlugin = require('manifest-revision-webpack-plugin');
const manifestFormatter = require('@practo/manifest-revision-formatter-webpack');
...
...
...
new ManifestRevisionPlugin(resolve(__dirname, 'build', 'manifest.json'), {
rootAssetPath: './path-to-assets',
ignorePaths: ['/ignore-assets-in-this-path'],
format: manifestFormatter
})
...
...
```