1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 15:28:28 -04:00
jarv.is/postcss.config.js
Jake Jarvis 58c82a1715
cumulative layout shift fixes
- inject theme toggle placeholder instead of loading dynamically
- explicitly set sticky header height
- set `font-display: fallback`
2022-01-14 17:10:35 -05:00

26 lines
484 B
JavaScript

// https://nextjs.org/docs/advanced-features/customizing-postcss-config#customizing-plugins
module.exports = {
plugins: [
"postcss-flexbugs-fixes",
[
"postcss-font-display",
{
display: "fallback",
replace: true,
},
],
[
"postcss-preset-env",
{
autoprefixer: {
flexbox: "no-2009",
},
stage: 3,
features: {
"custom-properties": false,
},
},
],
],
};