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(), ], } } }