Commit efe33c9c by zhuzhequan

Merge branch 'dev' into 'master'

Dev

See merge request !65
parents 468c41ae aa3e5d1c
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -13,7 +13,10 @@
"axios": "^1.1.3",
"babel-plugin-component": "^1.1.1",
"babel-plugin-import": "^1.13.8",
"compression-webpack-plugin": "^12.0.0",
"core-js": "^3.8.3",
"crypto": "^1.0.1",
"crypto.js": "^3.3.4",
"element-ui": "^2.15.13",
"js-md5": "^0.7.3",
"lodash": "~4.17.20",
......
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
// devServer: {
// port: 8082,
// host: '',
// }
chainWebpack: config => {
config
.plugin('gzip-plugin')
.use('compression-webpack-plugin', [
{
filename: '[path][base].gz',
algorithm: 'gzip',
test: /\.js$|\.html$|\.json$|\.css$|\.ttf$/,
threshold: 102400, // 只有大小大于该值的资源会被处理100KB =100 * 1024
deleteOriginalAssets: false // 删除原文件
}
])
.end()
},
devServer: {
port: 8082,
host: '',
proxy: {
'/api': {
target: 'http://172.16.17.222:8096',
changeOrigin: true
// pathRewrite: {
// '^/api': '',
// },
}
}
}
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment