2019-08-16 09:27:23 +00:00
|
|
|
const autoprefixer = require('autoprefixer')
|
2020-03-12 15:33:19 +00:00
|
|
|
const pxtorem = require('postcss-pxtorem')
|
2019-08-16 09:27:23 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
plugins: [
|
2020-03-12 15:33:19 +00:00
|
|
|
pxtorem({
|
|
|
|
rootValue: 16,
|
|
|
|
unitPrecision: 5,
|
|
|
|
propList: [
|
2020-03-13 08:16:42 +00:00
|
|
|
'font', 'font-size',
|
2020-03-12 15:33:19 +00:00
|
|
|
'line-height',
|
|
|
|
'letter-spacing',
|
|
|
|
'padding', 'margin',
|
2020-03-13 08:16:42 +00:00
|
|
|
'height', 'width',
|
|
|
|
'max-width', 'max-height',
|
|
|
|
'min-width', 'min-height',
|
|
|
|
'top', 'left', 'bottom', 'right',
|
2020-03-12 15:33:19 +00:00
|
|
|
'border-radius',
|
|
|
|
],
|
|
|
|
selectorBlackList: ['html'],
|
|
|
|
replace: true,
|
|
|
|
mediaQuery: false,
|
|
|
|
minPixelValue: 0,
|
|
|
|
exclude: [/node_modules/i],
|
|
|
|
}),
|
2019-08-16 09:27:23 +00:00
|
|
|
autoprefixer(),
|
|
|
|
],
|
|
|
|
}
|