rickvanlieshout.com/postcss-config.js
2019-12-18 22:37:51 +08:00

39 lines
716 B
JavaScript

'use strict';
const lost = require('lost');
const pxtorem = require('postcss-pxtorem');
const autoprefixer = require('autoprefixer');
module.exports = [
lost(),
pxtorem({
rootValue: 16,
unitPrecision: 5,
propList: [
'font',
'font-size',
'height',
'line-height',
'letter-spacing',
'margin',
'margin-top',
'margin-left',
'margin-bottom',
'margin-right',
'padding',
'padding-top',
'padding-left',
'padding-bottom',
'padding-right',
'border-radius',
'width',
'max-width'
],
selectorBlackList: [],
replace: true,
mediaQuery: false,
minPixelValue: 0
}),
autoprefixer()
];