Nitrate Processed Mincemeat

    hashes-webpack-plugin

    0.2.1 • Public • Published

    Hashes plugin for webpack Version Build Status Dependency Status

    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

    Contributors

    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.

    Install

    npm i hashes-webpack-plugin

    DownloadsWeekly Downloads

    0

    Version

    0.2.1

    License

    MIT

    Last publish

    Collaborators

    • unindented