mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 19:25:10 +00:00
only save the bits of client_info we need
This commit is contained in:
@@ -35,7 +35,9 @@ export async function build() {
|
||||
const client_stats = await compile(client);
|
||||
console.log(`${clorox.inverse(`\nbuilt client`)}`);
|
||||
console.log(client_stats.toString({ colors: true }));
|
||||
fs.writeFileSync(path.join(output, 'client_info.json'), JSON.stringify(client_stats.toJson()));
|
||||
fs.writeFileSync(path.join(output, 'client_info.json'), JSON.stringify({
|
||||
assets: client_stats.toJson().assetsByChunkName
|
||||
}));
|
||||
|
||||
const server_stats = await compile(server);
|
||||
console.log(`${clorox.inverse(`\nbuilt server`)}`);
|
||||
|
||||
Reference in New Issue
Block a user