An open API service indexing awesome lists of open source software.

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

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
})
...
...
```