Ai
1 Star 0 Fork 6

shech/vue+vue-cli3+vant

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 886 Bytes
一键复制 编辑 原始数据 按行查看 历史
unknown 提交于 2020-04-10 10:28 +08:00 . [feature]:first commit
const path = require('path')
module.exports = {
publicPath: "./",
css: {
loaderOptions: {
postcss: {
plugins: [
require('postcss-pxtorem')({ // 把px单位换算成rem单位
rootValue: 37.5, // 换算的基数(设计图750的根字体为32)
// selectorBlackList: ['weui', 'mu'], // 忽略转换正则匹配项
propList: ['*']
})
]
}
}
},
pluginOptions: {
'style-resources-loader': {
preProcessor: 'less',
patterns: [path.resolve(__dirname, "src/common/less/variable.less")] // 引入全局样式变量
}
},
devServer: {
port: 1890,
proxy: {
'/api': {
//本地服务接口地址
target: 'http://saber.aged.aijk.net/api', // 测试环境
ws: true,
pathRewrite: {
'^/api': '/'
}
}
}
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/swantb/vue_vuecli3_vant.git
git@gitee.com:swantb/vue_vuecli3_vant.git
swantb
vue_vuecli3_vant
vue+vue-cli3+vant
master

搜索帮助