👀:https://www.jianshu.com/p/81ed6729afdb
(亲测有效)
😋:上面的是搭建项目的流程
🤔:下面是移动端适配:
👁https://tiven.cn/p/b1ab6b72/
我的移动端用的mint-ui
😊:https://mint-ui.github.io/docs/#/zh-cn2
//vue.config.js
css: {
sourceMap: true,
loaderOptions: {
css: {},
postcss: {
plugins: [
/* rem适配忽略文件目录 */
require('postcss-px2rem-exclude')({
remUnit: 75, // 参数 1
exclude: /node_modules|mint/i, // 参数 2
}),
],
},
},
},