Jelajahi Sumber

add : HashedModuleIdsPlugin

Pan 7 tahun lalu
induk
melakukan
b2e3b556d6
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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',