Skip to content

Commit

Permalink
Remove stats.json file from altair-static dist directory after bundling
Browse files Browse the repository at this point in the history
package.
Closes #1013.
  • Loading branch information
imolorhe committed Oct 16, 2019
1 parent 683d43b commit 0e68aba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/altair-static/scripts/prepare_dist.js
Expand Up @@ -65,6 +65,9 @@ ncp(distSrc, distDestination, function (err) {

fs.writeFileSync(path.join(distDestination, 'index.html'), htmlString);

// Remove stats.json after writing index.html file (the file is too big and not useful anymore)
fs.unlinkSync(path.resolve(distDestination, 'stats.json'));

} catch(err) {
console.error('stats.json not found', err);
}
Expand Down

0 comments on commit 0e68aba

Please sign in to comment.