2
0

Change PostCSS config to allow logical properties (#31264)

This commit is contained in:
Renaud Chaput
2024-08-02 15:17:36 +02:00
committed by GitHub
parent bb3941f885
commit 99c446b7cf
3 changed files with 8 additions and 5 deletions

View File

@@ -1,8 +1,13 @@
const postcssPresetEnv = require('postcss-preset-env');
/** @type {import('postcss-load-config').Config} */
const config = ({ env }) => ({
plugins: [
require('postcss-preset-env'),
require('autoprefixer'),
postcssPresetEnv({
features: {
'logical-properties-and-values': false
}
}),
env === 'production' ? require('cssnano') : '',
],
});