mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 03:05:12 +00:00
replace client_assets.json with build.json, include bundler name
This commit is contained in:
@@ -271,7 +271,10 @@ class Watcher extends EventEmitter {
|
||||
},
|
||||
|
||||
handle_result: (result: CompileResult) => {
|
||||
fs.writeFileSync(path.join(dest, 'client_assets.json'), JSON.stringify(result.assetsByChunkName, null, ' '));
|
||||
fs.writeFileSync(path.join(dest, 'build.json'), JSON.stringify({
|
||||
bundler: this.bundler,
|
||||
assets: result.assetsByChunkName
|
||||
}, null, ' '));
|
||||
this.deferreds.client.fulfil();
|
||||
|
||||
const client_files = result.assets.map((file: string) => `client/${file}`);
|
||||
|
||||
Reference in New Issue
Block a user