This commit is contained in:
2023-08-09 16:44:10 +08:00
parent 2cdb072ab8
commit ba59394115
100 changed files with 8965 additions and 307 deletions

View File

@@ -7,7 +7,7 @@ function resolve(dir) {
const CompressionPlugin = require('compression-webpack-plugin');
const name = process.env.VUE_APP_TITLE || '对嘛管理系统'; // 网页标题
const name = process.env.VUE_APP_TITLE || '莳松管理系统'; // 网页标题
const port = process.env.port || process.env.npm_config_port || 80; // 端口
@@ -35,8 +35,8 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
// target: `http://118.31.23.45/duima/`,
target: `http://192.168.2.8:8086`,
// target: `https://xueche.ahduima.com/duima/`,
target: `http://localhost:8086`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
@@ -97,12 +97,10 @@ module.exports = {
config
.plugin('ScriptExtHtmlWebpackPlugin')
.after('html')
.use('script-ext-html-webpack-plugin', [
{
// `runtime` must same as runtimeChunk name. default is `runtime`
inline: /runtime\..*\.js$/
}
])
.use('script-ext-html-webpack-plugin', [{
// `runtime` must same as runtimeChunk name. default is `runtime`
inline: /runtime\..*\.js$/
}])
.end();
config.optimization.splitChunks({
chunks: 'all',