devServer: {
          port:8001,
          contentBase: './',// boolean | string | array, static file location
          compress: true, // enable gzip compression
         historyApiFallback: true, // true for index.html upon 404, object for multiple paths
          hot: true, // hot module replacement. Depends on HotModuleReplacementPlugin
         https: false, // true for self-signed, object for cert authority
         noInfo: true, // only errors & warns on hot reload
          host:'192.168.0.56',
         proxy: [
             {
                  context: ['/dist/*'],
                  target: 'http://localhost',
                  changeOrigin: true,
                 secure: false
              },
          ]
      },

整个wenback配置

 

最后修改于 2020-02-21 22:48:13
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付
上一篇