2020-05-23 14:24:20 +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
|
|
|
'letter-spacing',
|
|
|
|
'padding', 'margin',
|
2020-06-11 13:16:59 +00:00
|
|
|
'padding-*', 'margin-*',
|
2020-03-13 08:16:42 +00:00
|
|
|
'height', 'width',
|
2020-06-11 13:16:59 +00:00
|
|
|
'*-height', '*-width',
|
2020-04-28 05:33:55 +00:00
|
|
|
'flex', '::-webkit-scrollbar',
|
2020-03-13 08:16:42 +00:00
|
|
|
'top', 'left', 'bottom', 'right',
|
2021-09-30 06:27:32 +00:00
|
|
|
'border-radius', 'gap',
|
2020-03-12 15:33:19 +00:00
|
|
|
],
|
2020-04-23 04:50:46 +00:00
|
|
|
selectorBlackList: ['html', 'ignore-to-rem'],
|
2020-03-12 15:33:19 +00:00
|
|
|
replace: true,
|
|
|
|
mediaQuery: false,
|
|
|
|
minPixelValue: 0,
|
|
|
|
exclude: [/node_modules/i],
|
|
|
|
}),
|
2020-05-23 14:24:20 +00:00
|
|
|
// autoprefixer(),
|
2019-08-16 09:27:23 +00:00
|
|
|
],
|
|
|
|
}
|