| | |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: `http://localhost:8080`, |
| | | target: `http://192.168.0.41:8085`, |
| | | target: `http://192.168.2.42:8085`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ['^' + process.env.VUE_APP_BASE_API]: '' |
| | |
| | | minRatio: 0.8 // 压缩率小于1才会压缩 |
| | | }) |
| | | ], |
| | | module: { |
| | | rules: [ |
| | | { |
| | | test: /\.(xlsx|xls)$/, |
| | | use: [ |
| | | { |
| | | loader: 'file-loader', |
| | | options: { |
| | | name: '[name].[ext]', // 保留原始文件名和扩展名 |
| | | outputPath: 'assets', // 输出文件的文件夹路径,可以根据需要更改 |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | | } |
| | | }, |
| | | chainWebpack(config) { |
| | | config.plugins.delete('preload') // TODO: need test |