“wangdsYun 10 miesięcy temu
rodzic
commit
5c411e82a4
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      webpack.config.js

+ 2 - 2
webpack.config.js

@@ -4,7 +4,7 @@ const CleanWebpackPlugin = require('clean-webpack-plugin') // 清空打包目录
 const MiniCssExtractPlugin = require('mini-css-extract-plugin');
 const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
 const webpack = require('webpack');
-const proxyHost = "http://192.168.2.241:6060";
+const proxyHost = "http://192.168.2.131:6060";
 module.exports = {
   entry: {
     //index: path.resolve(__dirname, 'src/js', 'index.js'),
@@ -27,7 +27,7 @@ module.exports = {
     //staticInfoOut:path.resolve(__dirname, 'src/js', 'informationOut.js'),
     vendor: 'lodash'// 多个页面所需的公共库文件,防止重复打包带入
   },
-  output: {
+  output: { 
     publicPath: '/', //这里要放的是静态资源CDN的地址
     path: path.resolve(__dirname, 'dist'),
     filename: 'js/[name].js'