HW 3 anni fa
parent
commit
f299b8a278
2 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 2 2
      package.json
  2. 3 3
      webpack.config.js

+ 2 - 2
package.json

@@ -1,11 +1,11 @@
 {
   "name": "aft-portal",
-  "version": "1.2.9",
+  "version": "1.2.8",
   "description": "",
   "main": "index.js",
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1",
-    "dlldev": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy dev --env.host 'http://172.16.0.34:8080'",
+    "dlldev": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy dev --env.host 'http://192.168.1.106'",
     "dlltest": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy test --env.host 'http://static.jishutao.com'",
     "dllpro": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy prod --env.host 'http://ss.jishutao.com'",
     "build": "node bin/clean.js && webpack --progress --colors --env.deploy dev",

+ 3 - 3
webpack.config.js

@@ -515,7 +515,7 @@ module.exports = (function () {
         }));
     }
 
-    let staticHost = 'http://172.16.0.34:8080';
+    let staticHost = 'http://172.16.0.253:80';
     switch (argv.env.deploy) {
         case 'test':
             staticHost = 'http://statics.jishutao.com';
@@ -547,8 +547,8 @@ module.exports = (function () {
         plugins: plugins,
         devServer: {
             disableHostCheck: true,
-            host: '172.16.0.34',
-            port: 8080,
+            host: '172.16.0.253',
+            port: 80,
             allowedHosts: ['192.168.0.222', '192.168.0.99', '192.168.0.20','192.168.0.17'],
             headers: {
                 "Access-Control-Allow-Origin": "*"