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

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