Skip to content

Commit

Permalink
Fix asset size always be zero when building vue project (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijia Wang authored and devongovett committed Apr 13, 2018
1 parent 4189563 commit 25a054f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@ class Bundle {
}

await packager.addAsset(asset);
this.addAssetSize(asset, packager.getSize() - this.totalSize);

const assetSize = packager.getSize() - this.totalSize;
if (assetSize > 0) {
this.addAssetSize(asset, assetSize);
}
}

addAssetSize(asset, size) {
Expand Down

0 comments on commit 25a054f

Please sign in to comment.