瀏覽代碼

add : HashedModuleIdsPlugin

Pan 7 年之前
父節點
當前提交
b2e3b556d6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      build/webpack.prod.conf.js

+ 2 - 0
build/webpack.prod.conf.js

@@ -68,6 +68,8 @@ var webpackConfig = merge(baseWebpackConfig, {
       // necessary to consistently work with multiple chunks via CommonsChunkPlugin
       chunksSortMode: 'dependency'
     }),
+    // cache Module Identifiers
+    new webpack.HashedModuleIdsPlugin(),
     // split vendor js into its own file
     new webpack.optimize.CommonsChunkPlugin({
       name: 'vendor',