Skip to content

Commit f7c6051

Browse files
committed
Add some log lines
1 parent 46cb0b9 commit f7c6051

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ dotenv.config();
1515
const puppeteerCacheDir = join(homedir(), '.cache', 'puppeteer');
1616

1717
export const onPreBuild = async ({ utils } = {}) => {
18+
console.log('Restoring Lighthouse cache...');
1819
// Puppeteer relies on a global cache since v19.x, which otherwise would not be persisted in Netlify builds
1920
await utils?.cache.restore(puppeteerCacheDir);
21+
console.log('Lighthouse cache restored');
2022
};
2123

2224
export const onPostBuild = async ({ constants, utils, inputs } = {}) => {
2325
// Persist Puppeteer cache for subsequent builds/plugin runs
26+
console.log('Persisting Lighthouse cache resources...');
2427
await utils?.cache.save(puppeteerCacheDir);
28+
console.log('Lighthouse cache resources persisted');
2529

2630
const { failBuild, show } = getUtils({ utils });
2731
let errorMetadata = [];

0 commit comments

Comments
 (0)