https://github.com/practo/rev-replace-plugin
A webpack plugin to replace assets with there revisioned versions in static files
https://github.com/practo/rev-replace-plugin
Last synced: 3 months ago
JSON representation
A webpack plugin to replace assets with there revisioned versions in static files
- Host: GitHub
- URL: https://github.com/practo/rev-replace-plugin
- Owner: practo
- License: mit
- Created: 2017-04-17T06:52:27.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-22T07:50:29.000Z (over 7 years ago)
- Last Synced: 2025-11-02T10:07:27.088Z (8 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 34
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Revision replace plugin
- A webpack plugin to replace assets with their revisioned versions in static files
- To be used with:
- (Manifest revision plugin)[https://github.com/nickjj/manifest-revision-webpack-plugin]
- (Manifest format helper)[https://www.npmjs.com/package/@practo/manifest-revision-formatter-webpack]
# Usage
```
..
..
const RevReplacePlugin = require('@practo/rev-replace-plugin');
..
..
new RevReplacePlugin({
manifest: resolve('./build-dir', 'manifest.json'), // manifest source
output: resolve('./build-dir') // output for revisioned assets ( paths from manifest are maintained )
})
..
..
```