2024-08-02 14:17:36 +01:00
|
|
|
const postcssPresetEnv = require('postcss-preset-env');
|
|
|
|
|
2024-04-15 10:06:06 +01:00
|
|
|
/** @type {import('postcss-load-config').Config} */
|
|
|
|
const config = ({ env }) => ({
|
2023-03-15 03:01:10 +00:00
|
|
|
plugins: [
|
2024-08-02 14:17:36 +01:00
|
|
|
postcssPresetEnv({
|
|
|
|
features: {
|
|
|
|
'logical-properties-and-values': false
|
|
|
|
}
|
|
|
|
}),
|
2024-04-15 10:06:06 +01:00
|
|
|
env === 'production' ? require('cssnano') : '',
|
2023-03-15 03:01:10 +00:00
|
|
|
],
|
2019-01-04 10:28:38 +00:00
|
|
|
});
|
2024-04-15 10:06:06 +01:00
|
|
|
|
|
|
|
module.exports = config;
|