Designate hashed chunk path as the chunk id
npm install webpack-hashed-chunk-id-pluginDesignate hashed chunk path as the chunk id
``shell`
$ npm i webpack-hashed-chunk-id-plugin --save
`js
const hashedChunkIdPlugin = require('webpack-hashed-chunk-id-plugin')
webpackConfig = {
plugins: [
new hashedChunkIdPlugin()
]
}
`
You can specify the hash length you want (defualt 4):
`js``
new hashedChunkIdPlugin({
length: 10
})
[npm]: https://img.shields.io/npm/v/webpack-hashed-chunk-id-plugin.svg
[npm-url]: https://npmjs.com/package/webpack-hashed-chunk-id-plugin
[npm-download]: https://img.shields.io/npm/dm/webpack-hashed-chunk-id-plugin.svg