Verified Commit e0cf2b7a authored by Dan Allen's avatar Dan Allen
Browse files

remove font-display: swap property on font declrations

parent c570b437
Pipeline #3460 passed with stage
in 35 seconds
......@@ -34,6 +34,12 @@ module.exports = function (eleventyConfig, rest) {
postcssAtImport,
autoprefixer,
postcssPresetEnv({ browsers: 'defaults,not IE 11' }),
(css, result) => {
result.root.walk((node) => {
if (node.type === 'decl' && node.prop === 'font-display') node.remove()
})
return result
},
cssnano({ preset: cssnanoPreset })
])
.process(inputContent, { from: inputPath, to: '_site/assets/css/main.css' })
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment