.安装 postcss-pxtorem :  npm install postcss-pxtorem -D
.修改 /build/utils.js 文件 找到 postcssLoader const postcssLoader = {
loader: 'postcss-loader',
options: {
sourceMap: options.sourceMap
}
}
修改为: const postcssLoader = {
loader: 'postcss-loader',
options: {
sourceMap: options.sourceMap,
plugins: [
require('postcss-pxtorem')({
'rootValue': ,
propList: ['*']
})
]
}
}
04-26 05:54