| | |
| | | proxy: { |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | target: `http://192.168.0.104:8002`, |
| | | target: `http://localhost:8001`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ["^" + process.env.VUE_APP_BASE_API]: "", |
| | |
| | | "@": resolve("src"), |
| | | }, |
| | | }, |
| | | module: { |
| | | rules: [ |
| | | { |
| | | test: /\.worker\.js$/, |
| | | use: { |
| | | loader: "worker-loader", |
| | | options: { |
| | | filename: "[name].[contenthash].worker.js", // 添加内容哈希到文件名 |
| | | inline: "fallback", |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | plugins: [ |
| | | // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件 |
| | | new CompressionPlugin({ |