Designate hashed chunk path as the chunk id
$ npm i webpack-hashed-chunk-id-plugin --save
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
})