invalidate-assets-list-webpack-plugin
Generate (selectively) a list of asset paths to a JSON file for cache invalidation.
Installation
npm i --save-dev invalidate-assets-list-webpack-plugin
Usage
// webpack.config.jsvar InvalidateAssetsListPlugin = ; moduleexports = // ... plugins: // ...;
Options
options
options.filename
Exported JSON filename.
- Default:
invalidate-assets.json
options.hash
Appends hash as a query string to files that do not contain them:
(e.g. helloWorld.js
to helloWorld.js?1455678
)
- Default:
false
options.ignore
List of glob patterns to ignore. Can be a String or an Array of Strings.
- Default:
[]
- Accepts patterns from
minimatch
options.matchOptions
Options object for options.ignore
glob patterns.
- Default:
{ dot: true, matchBase: true }
- Accepts options from
minimatch
options.path
Path of the exported JSON.
- Default:
''