|
@@ -6,7 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
|
const webpack = require('webpack');
|
|
const webpack = require('webpack');
|
|
-const proxyHost = "http://192.168.2.236:5050";
|
|
|
|
|
|
+const proxyHost = "http://192.168.2.236:5858";
|
|
module.exports = {
|
|
module.exports = {
|
|
entry: {
|
|
entry: {
|
|
index: path.resolve(__dirname, 'src/js', 'index.js'),
|
|
index: path.resolve(__dirname, 'src/js', 'index.js'),
|
|
@@ -228,7 +228,7 @@ module.exports = {
|
|
devServer: {
|
|
devServer: {
|
|
contentBase: "./dist", //静态文件根目录
|
|
contentBase: "./dist", //静态文件根目录
|
|
proxy: {
|
|
proxy: {
|
|
- '/api': proxyHost
|
|
|
|
|
|
+ '/': proxyHost
|
|
},
|
|
},
|
|
hot: true,
|
|
hot: true,
|
|
openPage:'index.html'
|
|
openPage:'index.html'
|