GA Fixes and CWV improvements
Some checks failed
ci/woodpecker/pr/ci Pipeline failed

This commit is contained in:
2026-02-01 00:19:02 -03:00
parent 45e9382645
commit 9bf06d8cb0
5 changed files with 13 additions and 13 deletions

View File

@@ -46,7 +46,7 @@ async function main() {
const critters = new Critters({
path: DIST,
preload: 'swap',
preload: 'default',
noscriptFallback: true,
pruneSource: false,
logLevel: 'warn',
@@ -57,7 +57,7 @@ async function main() {
const filePath = path.join(DIST, file);
let html = fs.readFileSync(filePath, 'utf8');
html = await critters.process(html);
html = postProcessSwapLinks(html);
// html = postProcessSwapLinks(html);
fs.writeFileSync(filePath, html, 'utf8');
console.log('✓ Critical CSS inlined → dist/' + file);
}