@@ -10,7 +10,7 @@ import prettyBytes from './lib/prettyBytes.mjs';
10
10
import formatSize from './lib/formatSize.mjs' ;
11
11
import ellipsis from './lib/ellipsis.mjs' ;
12
12
13
- import manifest from '../public/js/webpack.manifest.json' assert { type : 'json ' } ;
13
+ import manifest from '../public/js/webpack.manifest.json' with { type : 'json' } ;
14
14
15
15
/*
16
16
POST PRODUCTION:
@@ -94,7 +94,10 @@ for (let chunkName of Object.keys(manifest.namedChunkGroups)) {
94
94
}
95
95
96
96
// Store production manifest
97
- await writeFile ( path . resolve ( import . meta. dirname , '../public/manifest.json' ) , JSON . stringify ( productionManifest , null , 2 ) ) ;
97
+ await writeFile (
98
+ path . resolve ( import . meta. dirname , '../public/manifest.json' ) ,
99
+ JSON . stringify ( productionManifest , null , 2 ) ,
100
+ ) ;
98
101
99
102
/*
100
103
// Generate Service Worker
@@ -113,7 +116,10 @@ const terserConfig = JSON.parse(await readFile(path.resolve(import.meta.dirname,
113
116
sw = (await minify(sw, terserConfig)).code;
114
117
await writeFile(path.resolve(import.meta.dirname, '../public/sw.js'), sw, { encoding: 'utf-8' });
115
118
*/
116
- await copyFile ( path . resolve ( import . meta. dirname , '../client/sw-destroy.js' ) , path . resolve ( import . meta. dirname , '../public/sw.js' ) ) ;
119
+ await copyFile (
120
+ path . resolve ( import . meta. dirname , '../client/sw-destroy.js' ) ,
121
+ path . resolve ( import . meta. dirname , '../public/sw.js' ) ,
122
+ ) ;
117
123
118
124
// Print file report
119
125
let sum = 0 ;
0 commit comments