Skip to content

Commit 22129bb

Browse files
yohangzritz078
authored andcommitted
Fix #37 (#38)
1 parent 22e8c89 commit 22129bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ export default function filesize(options = {}, env) {
6969
generateBundle(outputOptions, bundle, isWrite) {
7070
Object.keys(bundle)
7171
.map(fileName => bundle[fileName])
72-
.forEach(bundle => console.log(getData(outputOptions, bundle.code)));
72+
.filter(currentBundle => !currentBundle.isAsset)
73+
.forEach((currentBundle) => {
74+
console.log(getData(outputOptions, currentBundle.code))
75+
});
7376
}
7477
};
7578
}

0 commit comments

Comments
 (0)