0.1.10 • Published 8 years ago

versioning-webpack-plugin v0.1.10

Weekly downloads
29
License
MIT
Repository
github
Last release
8 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

8 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago