|
@@ -3,12 +3,13 @@ const defaultSettings = require('./src/config/index.js')
|
|
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
|
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
|
|
|
|
|
|
|
|
const resolve = dir => path.join(__dirname, dir)
|
|
const resolve = dir => path.join(__dirname, dir)
|
|
|
-// page title
|
|
|
|
|
|
|
+// page titley
|
|
|
const name = defaultSettings.title;
|
|
const name = defaultSettings.title;
|
|
|
// 生产环境,测试和正式
|
|
// 生产环境,测试和正式
|
|
|
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
|
|
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
|
|
|
|
|
|
|
|
const { defineConfig } = require('@vue/cli-service')
|
|
const { defineConfig } = require('@vue/cli-service')
|
|
|
|
|
+require('events').EventEmitter.defaultMaxListeners = 0;
|
|
|
// externals
|
|
// externals
|
|
|
// const externals = {
|
|
// const externals = {
|
|
|
// vue: 'Vue',
|
|
// vue: 'Vue',
|
|
@@ -119,7 +120,7 @@ module.exports = defineConfig({
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
'/test': {
|
|
'/test': {
|
|
|
- target: "http://47.92.229.224:8080",
|
|
|
|
|
|
|
+ target: "http://10.87.10.91:8080",
|
|
|
// ws:true,
|
|
// ws:true,
|
|
|
changOrigin:true,
|
|
changOrigin:true,
|
|
|
pathRewrite:{
|
|
pathRewrite:{
|