clear-old-hashes-plugin

1.0.0 • Public • Published

clear-old-hashes-plugin

Documentation

Installation

npm install clear-old-hashes-plugin --save-dev

Example Webpack Config

var ClearOldHashesPlugin = require('clear-old-hashes-plugin');

module.exports = {
  entry: {
    bundle: './entry.js',
    vendor: './vendor.js'
  },
  output: {
    path: path.join(process.cwd(), './dist'),
    filename: '[id].bundle.[chunkhash].js'
  },
  plugins: [
    new ClearOldHashesPlugin({delimiter: '.'})
  ]
}

Usage

new ClearOldHashesPlugin({options})

Options Config

{
  "delimiter": symbol to separate filename sections ('.' || '-' || anything else...), // [name]-[hash].js or [name].[hash].js etc...
}

License MIT License

Package Sidebar

Install

npm i clear-old-hashes-plugin

Weekly Downloads

5

Version

1.0.0

License

ISC

Last publish

Collaborators

  • dlombardi