You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
new_company/vue.config.js

26 lines
562 B
JavaScript

7 months ago
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
module.exports = {
devServer:{
proxy: {
7 months ago
'/api':{
target:'http://192.168.10.54:9100/v1',
7 months ago
changOrigin:true,
pathRewrite:{
'^/api':''
}
}
}
},
configureWebpack: {
optimization: {
minimizer: [
new CssMinimizerPlugin(),
],
4 months ago
splitChunks: {
4 months ago
chunks: 'all'
4 months ago
}
7 months ago
}
4 months ago
}
7 months ago
}