Pārlūkot izejas kodu

访问地址修改

mentoswzq 4 gadi atpakaļ
vecāks
revīzija
981750e7e9
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 1 1
      package.json
  2. 3 3
      webpack.config.js

+ 1 - 1
package.json

@@ -5,7 +5,7 @@
   "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://192.168.1.106'",
+    "dlldev": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy dev --env.host 'http://172.16.0.34:8080'",
     "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.253:80';
+    let staticHost = 'http://172.16.0.34:8080';
     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.253',
-            port: 80,
+            host: '172.16.0.34',
+            port: 8080,
             allowedHosts: ['192.168.0.222', '192.168.0.99', '192.168.0.20','192.168.0.17'],
             headers: {
                 "Access-Control-Allow-Origin": "*"