Skip to content

dlombardi/clear-old-hashes-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published