mirror of
https://github.com/eyebluecn/tank-front
synced 2024-04-21 12:31:55 +00:00
494 B
494 B
change default port to 6015
create file vue.config.js next to package.json
module.exports = {
devServer: {
port: 6015
}
}
Add less support
npm install -D less-loader less
Add http proxy
module.exports = {
devServer: {
proxy: {
'/api': {
//target: 'https://tank.eyeblue.cn',
target: 'http://127.0.0.1:6010',
changeOrigin: true,
pathRewrite: {
'^/api': '/api'
}
}
}
}
}