2023-02-24 12:46:41 +03:00
|
|
|
const autoprefixer = require('autoprefixer');
|
2024-06-05 03:32:49 +03:00
|
|
|
const pxToRem = require('postcss-pxtorem');
|
2024-07-09 15:06:09 +03:00
|
|
|
const postcssNesting = require('postcss-nesting');
|
2023-01-31 17:55:57 +03:00
|
|
|
|
|
|
|
const config = {
|
2023-02-24 12:46:41 +03:00
|
|
|
plugins: [
|
|
|
|
//But others, like autoprefixer, need to run after,
|
2024-06-05 03:32:49 +03:00
|
|
|
autoprefixer,
|
|
|
|
pxToRem({
|
|
|
|
rootValue: 16,
|
|
|
|
unitPrecision: 5,
|
|
|
|
propList: ['*'],
|
|
|
|
selectorBlackList: [],
|
|
|
|
replace: true,
|
|
|
|
mediaQuery: false,
|
|
|
|
minPixelValue: 0
|
2024-07-09 15:06:09 +03:00
|
|
|
}),
|
|
|
|
postcssNesting()
|
2023-02-24 12:46:41 +03:00
|
|
|
]
|
2023-01-31 17:55:57 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|