Easy assets versions Webpack plugin.
To install the stable version:
npm install --save-dev assets-versions-webpack-plugin
This assumes you are using npm as your package manager.
The only thing you need is to specify paths to files which should not be cached.
import AssetsVersions from 'assets-versions-webpack-plugin';
new AssetsVersions({
indexPath: 'path/to/index.html',
cssPath: 'path/to/styles.css',
jsPath: 'path/to/app.js'
});
That's it!
This project adheres to Semantic Versioning. Every release is documented on the GitHub Releases page.
MIT