This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user