Evan-Leee / webpack-hashed-chunk-id-plugin

Designate hashed chunk path as the chunk id

Home Page:https://www.npmjs.com/package/webpack-hashed-chunk-id-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm

webpack-hashed-chunk-id-plugin

Designate hashed chunk path as the chunk id

Install

$ npm i webpack-hashed-chunk-id-plugin --save

Usage

const hashedChunkIdPlugin = require('webpack-hashed-chunk-id-plugin')

webpackConfig = {
  plugins: [
    new hashedChunkIdPlugin()
  ]
}

You can specify the hash length you want (defualt 4):

new hashedChunkIdPlugin({
  length: 10
})

Author

daixinye

About

Designate hashed chunk path as the chunk id

https://www.npmjs.com/package/webpack-hashed-chunk-id-plugin

License:MIT License


Languages

Language:JavaScript 100.0%