sunjh 5 years ago
parent
commit
9af1ed6e1f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      build/webpack.dev.conf.js

+ 2 - 2
build/webpack.dev.conf.js

@@ -23,7 +23,6 @@ const devWebpackConfig = merge(baseWebpackConfig, {
   // these devServer options should be customized in /config/index.js
   devServer: {
     clientLogLevel: 'warning',
-    disableHostCheck: true, //  开发环境使用true方便开发,生产环境使用false
     historyApiFallback: {
       rewrites: [
         { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
@@ -43,7 +42,8 @@ const devWebpackConfig = merge(baseWebpackConfig, {
     quiet: true, // necessary for FriendlyErrorsPlugin
     watchOptions: {
       poll: config.dev.poll,
-    }
+    },
+    disableHostCheck: true, //  开发环境使用true方便开发,生产环境使用false
   },
   plugins: [
     new webpack.DefinePlugin({