hashes-webpack-plugin
v0.2.1
Published
Generate hashed versions of all files in a compilation.
Downloads
12
Readme
Hashes plugin for webpack
Generates hashed versions of all files in a compilation.
Installation
$ npm install --save hashes-webpack-plugin
Usage
var HashesPlugin = require('hashes-webpack-plugin');
module.exports = {
plugins: [
new HashesPlugin('[path][name]-[hash].[ext]', {
algorithm: 'md5'
})
]
};
API
new HashesPlugin(pattern: string, [options])
pattern
: The pattern used to name the resulting files. Possible placeholders:[path]
the name of the chunk[name]
the name of the chunk[ext]
the extension of the chunk[hash]
a hash of the content of the extracted file
options
:algorithm
the hashing algorithm to be used
Meta
- Code:
git clone git://github.com/unindented/hashes-webpack-plugin.git
- Home: https://github.com/unindented/hashes-webpack-plugin/
Contributors
- Daniel Perez Alvarez ([email protected])
License
Copyright (c) 2016 Daniel Perez Alvarez (unindented.org). This is free software, and may be redistributed under the terms specified in the LICENSE file.