@@ -93,14 +93,15 @@ async function abridge() {
93
93
_rmRegex ( path . join ( bpath , "static/js/" ) , / ^ w a s m .* p a g e f i n d $ / ) ;
94
94
_rmRegex ( path . join ( bpath , "static/js/" ) , / ^ p a g e f i n d .* p f _ m e t a $ / ) ;
95
95
_rmRegex ( path . join ( bpath , "static/js/" ) , / ^ p a g e f i n d - e n t r y \. j s o n $ / ) ;
96
+ _rmRecursive ( path . join ( bpath , "static/js/index" ) ) ;
97
+ _rmRecursive ( path . join ( bpath , "static/js/fragment" ) ) ;
96
98
}
97
99
98
100
// cleanup
99
101
_rmRegex ( path . join ( bpath , "static/js/" ) , / ^ p a g e f i n d \. j s $ / ) ; //pagefind temporary intermediate files
100
102
_rmRegex ( path . join ( bpath , "static/js/" ) , / ^ p a g e f i n d - .* \. j s $ / ) ; //pagefind temporary intermediate files
101
103
_rmRegex ( path . join ( bpath , "static/js/" ) , / ^ p a g e f i n d - .* \. c s s $ / ) ; //pagefind temporary intermediate files
102
- _rmRecursive ( path . join ( bpath , "static/js/index" ) ) ; //pagefind temporary intermediate files
103
- _rmRecursive ( path . join ( bpath , "static/js/fragment" ) ) ; //pagefind temporary intermediate files
104
+
104
105
105
106
if ( pwa ) { // Update pwa settings, file list, and hashes.
106
107
if ( typeof pwa_VER !== 'undefined' && typeof pwa_NORM_TTL !== 'undefined' && typeof pwa_LONG_TTL !== 'undefined' && typeof pwa_TTL_NORM !== 'undefined' && typeof pwa_TTL_LONG !== 'undefined' && typeof pwa_TTL_EXEMPT !== 'undefined' ) {
@@ -332,6 +333,8 @@ if (args === ' offline') {
332
333
_rmRegex ( path . join ( bpath , "static/js/" ) , / ^ w a s m .* p a g e f i n d $ / ) ;
333
334
_rmRegex ( path . join ( bpath , "static/js/" ) , / ^ p a g e f i n d .* p f _ m e t a $ / ) ;
334
335
_rmRegex ( path . join ( bpath , "static/js/" ) , / ^ p a g e f i n d - e n t r y \. j s o n $ / ) ;
336
+ _rmRecursive ( path . join ( bpath , "static/js/index" ) ) ;
337
+ _rmRecursive ( path . join ( bpath , "static/js/fragment" ) ) ;
335
338
searchChange ( 'elasticlunr' ) ;
336
339
} else if ( args === ' pagefind' ) {
337
340
searchChange ( 'pagefind' ) ;
0 commit comments