Skip to content

Commit

Permalink
Fixed: Critical now includes font-face rules
Browse files Browse the repository at this point in the history
  • Loading branch information
bymayo committed Feb 25, 2021
1 parent 6fda74b commit bf84571
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,7 @@ const processCriticalCSS = (element, i, callback) => {
css: package.paths.templates + package.critical.dest + element.slug + ".css"
},
minify: true,
extract: true,
ignore: {
atrule: ['@font-face'],
rule: [/some-regexp/],
decl: (node, value) => /big-image\.png/.test(value),
}
extract: true
}
);

Expand Down

0 comments on commit bf84571

Please sign in to comment.