File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,17 @@ dotenv.config();
15
15
const puppeteerCacheDir = join ( homedir ( ) , '.cache' , 'puppeteer' ) ;
16
16
17
17
export const onPreBuild = async ( { utils } = { } ) => {
18
+ console . log ( 'Restoring Lighthouse cache...' ) ;
18
19
// Puppeteer relies on a global cache since v19.x, which otherwise would not be persisted in Netlify builds
19
20
await utils ?. cache . restore ( puppeteerCacheDir ) ;
21
+ console . log ( 'Lighthouse cache restored' ) ;
20
22
} ;
21
23
22
24
export const onPostBuild = async ( { constants, utils, inputs } = { } ) => {
23
25
// Persist Puppeteer cache for subsequent builds/plugin runs
26
+ console . log ( 'Persisting Lighthouse cache resources...' ) ;
24
27
await utils ?. cache . save ( puppeteerCacheDir ) ;
28
+ console . log ( 'Lighthouse cache resources persisted' ) ;
25
29
26
30
const { failBuild, show } = getUtils ( { utils } ) ;
27
31
let errorMetadata = [ ] ;
You can’t perform that action at this time.
0 commit comments