dengzhiguo 7 years ago
parent
commit
0224c494f6
2 changed files with 6 additions and 6 deletions
  1. 1 1
      package.json
  2. 5 5
      webpack.config.js

+ 1 - 1
package.json

@@ -8,7 +8,7 @@
     "dlldev": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy dev --env.host 'http://127.0.0.1'",
     "dlltest": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy test --env.host 'http://static.jishutao.com'",
     "dllstage": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy stage --env.host 'http://aftts.hnzhiming.com'",
-    "dllpro": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy prod --env.host 'http://static.goafanti.com'",
+    "dllpro": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy prod --env.host 'http://s.jishutao.com'",
     "build": "node bin/clean.js && webpack --progress --colors --env.deploy dev",
     "buildtest": "node --max_old_space_size=4096 bin/clean.js && webpack --progress --colors --env.deploy test",
     "buildstage": "node bin/clean.js && webpack --progress --colors --env.deploy stage",

+ 5 - 5
webpack.config.js

@@ -24,11 +24,11 @@ module.exports = (function () {
         new webpack.optimize.CommonsChunkPlugin({
             name: 'vendors'
         }),
-        // /* 配置好Dll */
-        // new webpack.DllReferencePlugin({
-        //     context: dirVars.staticRootDir, // 指定一个路径作为上下文环境,需要与DllPlugin的context参数保持一致,建议统一设置为项目根目录
-        //     manifest: require('./dll/'+argv.env.deploy+'/manifest.json') // 指定manifest.json
-        // }),
+        //   /* 配置好Dll */
+        new webpack.DllReferencePlugin({
+               context: dirVars.staticRootDir, // 指定一个路径作为上下文环境,需要与DllPlugin的context参数保持一致,建议统一设置为项目根目录
+               manifest: require('./dll/'+argv.env.deploy+'/manifest.json') // 指定manifest.json
+           }),
         new ExtractTextPlugin({
             filename: "[name].css",
             disable: false,