Fix PostCSS config (#29926)
parent
ee4ea83a87
commit
67dd1763bb
|
@ -1,7 +1,10 @@
|
||||||
module.exports = ({ env }) => ({
|
/** @type {import('postcss-load-config').Config} */
|
||||||
|
const config = ({ env }) => ({
|
||||||
plugins: [
|
plugins: [
|
||||||
'postcss-preset-env',
|
require('postcss-preset-env'),
|
||||||
'autoprefixer',
|
require('autoprefixer'),
|
||||||
env === 'production' ? 'cssnano' : '',
|
env === 'production' ? require('cssnano') : '',
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
module.exports = config;
|
||||||
|
|
Loading…
Reference in New Issue