-
将flexible.js文件放在更目录下的某个文件夹,然后在main.js中引入
import ‘./plugins/flexible.js’ -
在根目录下新建postcss.config.js
其中的内容为
module.exports = {
plugins: {
'autoprefixer': {
overrideBrowserslist: ['> 0.15% in CN']
},
'postcss-pxtorem': {
rootValue: 160,
propList: ['*']
}
}
}