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