0
0
Fork 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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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') : '',
],
});