瀏覽代碼

Webpack with scope hoisting

master
Lyubo Marinov 8 年之前
父節點
當前提交
2a75d67be9
共有 1 個檔案被更改,包括 1 行新增5 行删除
  1. 1
    5
      webpack.config.js

+ 1
- 5
webpack.config.js 查看文件

33
             NODE_ENV: JSON.stringify('production')
33
             NODE_ENV: JSON.stringify('production')
34
         }
34
         }
35
     }));
35
     }));
36
-
36
+    plugins.push(new webpack.optimize.ModuleConcatenationPlugin());
37
     plugins.push(new webpack.optimize.UglifyJsPlugin({
37
     plugins.push(new webpack.optimize.UglifyJsPlugin({
38
         compress: {
38
         compress: {
39
-            // It is nice to see warnings from UglifyJsPlugin that something is
40
-            // unused/removed.
41
             warnings: true
39
             warnings: true
42
         },
40
         },
43
         extractComments: true,
41
         extractComments: true,
44
-
45
-        // Use the source map to map error message locations to modules.
46
         sourceMap: true
42
         sourceMap: true
47
     }));
43
     }));
48
 }
44
 }

Loading…
取消
儲存