-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
32 lines (32 loc) · 943 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
chainWebpack: (config) => {
config.module
.rule("worker")
.test(/\.worker\.js$/)
.use("worker")
.loader("worker-loader")
.options({ inline: "fallback" });
// config.plugin('webpack-bundle-analyzer').use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin);
},
productionSourceMap: false,
parallel: false,
publicPath: "./",
transpileDependencies: true,
devServer: {
// host: "0.0.0.0",
// port: port,
open: true,
proxy: {
[process.env.VUE_APP_BASE_API]: {
// target: 'http://'.concat(process.env.VUE_APP_BACKEND_IP, ':', process.env.VUE_APP_BACKEND_PORT),
target: process.env.VUE_APP_HTTP_API,
changeOrigin: true,
pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "",
},
},
},
// disableHostCheck: true,
},
});