/assets-versions-webpack-plugin

Easy assets versions Webpack plugin

Primary LanguageJavaScriptMIT LicenseMIT

Assets Versions

Easy assets versions Webpack plugin.

build status coverage status npm version npm downloads

Installation

To install the stable version:

npm install --save-dev assets-versions-webpack-plugin

This assumes you are using npm as your package manager.

Gist

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!

Change Log

This project adheres to Semantic Versioning. Every release is documented on the GitHub Releases page.

License

MIT