You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
662 B
27 lines
662 B
const { defineConfig } = require('@vue/cli-service')
|
|
module.exports = defineConfig({
|
|
transpileDependencies: [
|
|
'ml-matrix',
|
|
'@antv/g6',
|
|
'@antv/layout',
|
|
'@antv/util'
|
|
],
|
|
devServer: {
|
|
host: '0.0.0.0',
|
|
port: 80,
|
|
open: true,
|
|
proxy: {
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
target: 'http://localhost:8088',
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
['^' + process.env.VUE_APP_BASE_API]: '/'
|
|
}
|
|
}
|
|
},
|
|
// 替代 disableHostCheck: true
|
|
allowedHosts: 'all' // 允许所有 Host 访问(开发环境安全)
|
|
},
|
|
|
|
}
|
|
)
|
|
|