1.npm i -S amfe-flexible
2.npm i postcss-pxtorem
3.main.js 中引入 import 'amfe-flexible'
4.postcss.config.js
module.exports={
plugins:{
autoprefixer:{},
"postcss-pxtorem":{
"rootValue":"75",
"propList":["*"]
}
}
}
1.npm i -S amfe-flexible
2.npm i postcss-pxtorem
3.main.js 中引入 import 'amfe-flexible'
4.postcss.config.js
module.exports={
plugins:{
autoprefixer:{},
"postcss-pxtorem":{
"rootValue":"75",
"propList":["*"]
}
}
}