dataease-dm/frontend/vue.config.js

39 lines
717 B
JavaScript
Raw Normal View History

2021-02-18 18:14:45 +08:00
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: {
2021-02-19 17:05:11 +08:00
// devtool: 'source-map',
devtool: 'eval-source-map',
2021-02-18 18:14:45 +08:00
resolve: {
alias: {
'@': resolve('src')
}
}
}
};