Skip to content

Commit

Permalink
Merge pull request #165 from veops/dev_ui
Browse files Browse the repository at this point in the history
proxy
  • Loading branch information
wang-liang0615 authored Aug 31, 2023
2 parents 3e6955f + f215e88 commit 04fc588
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions cmdb-ui/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ module.exports = {
default:
return selector
}
}
})
]
},
}),
],
},

chainWebpack: (config) => {
config.resolve.alias
.set('@$', resolve('src'))
config.resolve.alias.set('@$', resolve('src'))

const svgRule = config.module.rule('svg')
svgRule.uses.clear()
Expand All @@ -62,7 +61,7 @@ module.exports = {
.use('file-loader')
.loader('file-loader')
.options({
name: 'assets/[name].[hash:8].[ext]'
name: 'assets/[name].[hash:8].[ext]',
})
/* svgRule.oneOf('inline')
.resourceQuery(/inline/)
Expand All @@ -84,28 +83,36 @@ module.exports = {
less: {
modifyVars: {
/* less 变量覆盖,用于自定义 ant design 主题 */

/*
'primary-color': '#F5222D',
'link-color': '#F5222D',
'border-radius-base': '4px',
*/
},
javascriptEnabled: true
}
}
javascriptEnabled: true,
},
},
},

devServer: {
disableHostCheck: true,
port: process.env.DEV_PORT || 8000
port: process.env.DEV_PORT || 8000,
proxy: {
'/api': {
pathRewrite: {
'^/api': '/api',
},
target: 'http://localhost:5000',
changeOrigin: true,
},
},
},

// disable source map in production
productionSourceMap: false,
lintOnSave: undefined,
// babel-loader no-ignore node_modules/*
transpileDependencies: []
transpileDependencies: [],
}

function getAntdSerials(color) {
Expand Down

0 comments on commit 04fc588

Please sign in to comment.