| | |
| | | |
| | | const CompressionPlugin = require("compression-webpack-plugin"); |
| | | |
| | | const name = process.env.VUE_APP_TITLE || "若依管理系统"; // 网页标题 |
| | | const name = process.env.VUE_APP_TITLE || "LIMS实验室管理系统"; // 网页标题 |
| | | |
| | | const port = process.env.port || process.env.npm_config_port || 80; // 端口 |
| | | |
| | |
| | | proxy: { |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | target: `http://192.168.0.104:8002`, |
| | | target: `http://127.0.0.1:8002`, |
| | | // target: `https://zttx-lims.ztt.cn:8021`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ["^" + process.env.VUE_APP_BASE_API]: "", |
| | |
| | | }, |
| | | configureWebpack: { |
| | | name: name, |
| | | module: { |
| | | rules: [ |
| | | { |
| | | test: /\.worker\.js$/, |
| | | use: { |
| | | loader: "worker-loader", |
| | | options: { |
| | | inline: "fallback", |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | resolve: { |
| | | alias: { |
| | | "@": resolve("src"), |