gitbutler/app/postcss.config.cjs
Pavel Laptev 1451534b51
Replace px with rem (#3998)
* add the plugin

* replace size variables with px

* formatting

* remove px + px from calc functions

* replaced rem with px

* update rem calculation in functions

* Update Button.svelte

* replace string with number values

* scrollbar appearance bug

* formatting fix
2024-06-05 02:32:49 +02:00

21 lines
384 B
JavaScript

const autoprefixer = require('autoprefixer');
const pxToRem = require('postcss-pxtorem');
const config = {
plugins: [
//But others, like autoprefixer, need to run after,
autoprefixer,
pxToRem({
rootValue: 16,
unitPrecision: 5,
propList: ['*'],
selectorBlackList: [],
replace: true,
mediaQuery: false,
minPixelValue: 0
})
]
};
module.exports = config;