de/frontend/vue.config.js
fit2cloud-chenyw 96463b09e0 Merge remote-tracking branch 'origin/main' into main
# Conflicts:
#	dataease-commons/dataease-common-auth/src/main/java/io/dataease/commons/auth/config/F2cRealm.java
#	frontend/src/api/user-token.js
#	frontend/src/store/modules/user-token.js
2021-02-19 17:08:56 +08:00

39 lines
717 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
productionSourceMap: true,
// 使用mock-server
devServer: {
port: 8080,
open: true,
overlay: {
warnings: false,
errors: true
},
before: require('./mock/mock-server.js')
},
// 不使用mock-server直接连接开发服务器
// devServer: {
// port: 8080,
// proxy: {
// ['^(?!/login)']: {
// target: 'http://localhost:8081',
// ws: true,
// }
// }
// },
configureWebpack: {
// devtool: 'source-map',
devtool: 'eval-source-map',
resolve: {
alias: {
'@': resolve('src')
}
}
}
};