Fix PostCSS config (#29926)

pull/29939/head
Renaud Chaput 2024-04-15 11:06:06 +02:00 committed by GitHub
parent ee4ea83a87
commit 67dd1763bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,10 @@
module.exports = ({ env }) => ({
/** @type {import('postcss-load-config').Config} */
const config = ({ env }) => ({
plugins: [
'postcss-preset-env',
'autoprefixer',
env === 'production' ? 'cssnano' : '',
require('postcss-preset-env'),
require('autoprefixer'),
env === 'production' ? require('cssnano') : '',
],
});
module.exports = config;