自来水发票系统管理前端
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.
 
 
 
 
 

32 lines
875 B

const path = require('path')
const resolve = dir => {
return path.join(__dirname, dir)
}
// 项目部署基础
// 默认情况下,我们假设你的应用将被部署在域的根目录下,
// 例如:https://www.my-app.com/
// 默认:'/'
// 如果您的应用程序部署在子路径中,则需要在这指定子路径
// 例如:https://www.foobar.com/my-app/
// 需要将它改为'/my-app/'
// iview-admin线上演示打包路径: https://file.iviewui.com/admin-dist/
const BASE_URL = process.env.NODE_ENV === 'production'
? '/web/'
: '/'
module.exports = {
publicPath: BASE_URL,
lintOnSave: true,
chainWebpack: config => {
config.resolve.alias.set('@', resolve('src')).set('_c', resolve('src/components'))
},
configureWebpack: {
externals: {
vue: 'Vue',
'vue-design': 'view-design'
}
},
productionSourceMap: false
}