bundle加hash

在输入的bundle命名里面加入hash值,有利于前端命中缓存

module.exports = {
  mode: 'production',
  output: {
    filename: '[name].bundle.[contenthash:8].js',
    assetModuleFilename: 'images/[hash][ext][query]'
  }
}

results matching ""

    No results matching ""