beelink/vue.config.js

27 lines
733 B
JavaScript
Raw Permalink Normal View History

2020-09-27 10:37:36 +08:00
module.exports = {
css: {
loaderOptions: {
postcss: {
plugins: [
require('postcss-pxtorem')({ // 把px单位换算成rem单位
rootValue: 100, // 换算的基数(设计图750的根字体为32)
selectorBlackList: ['weui', 'mu'], // 忽略转换正则匹配项
propList: ['*']
})
]
}
}
},
configureWebpack: config => {
if (process.env.NODE_ENV === 'production') {
// 为生产环境修改配置...
} else {
// 为开发环境修改配置...
2020-10-09 14:31:10 +08:00
config.devServer = {
2020-10-12 09:55:28 +08:00
proxy: 'http://case.sy-my.net',
disableHostCheck: true
2020-10-09 14:31:10 +08:00
}
2020-09-27 10:37:36 +08:00
}
}
}