0.1.10 • Published 6 years ago

versioning-webpack-plugin v0.1.10

Weekly downloads
29
License
MIT
Repository
github
Last release
6 years ago

versioning-webpack-plugin

Webpack plugin that performs versioning using a manifest.json file for storing the filename aliases.

This plugin cleans after itself by removing old manifest files when cleanup: true in the options.

Installation

To install run npm i versioning-webpack-plugin --save-dev

Usage

const VersioningPlugin = require('versioning-webpack-plugin')
const WebpackMd5Hash = require('webpack-md5-hash')

module.exports = {
    output: {
        filename: "[name]-[chunkhash].js"
    },
    /// ... rest of config
    plugins: [
        // these are the default options
        new VersioningPlugin({
            cleanup: true,                      // should it remove old files?
            basePath: './',                     // manifest.json base path
            manifestFilename: 'manifest.json'   // name of the manifest file
        }),
        new WebpackMd5Hash()
    ]
}
0.1.10

6 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago