Skip to content

Commit

Permalink
catch css file not found (#2206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Anguiano authored and devongovett committed Nov 5, 2018
1 parent cbbbbbe commit 9136cdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core/parcel-bundler/src/utils/md5.js
Expand Up @@ -11,11 +11,11 @@ function md5(string, encoding = 'hex') {
md5.file = function(filename) {
return new Promise((resolve, reject) => {
fs.createReadStream(filename)
.on('error', reject)
.pipe(crypto.createHash('md5').setEncoding('hex'))
.on('finish', function() {
resolve(this.read());
})
.on('error', reject);
});
});
};

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Expand Up @@ -2422,7 +2422,7 @@ browserslist@^4.0.0, browserslist@^4.1.0:
electron-to-chromium "^1.3.81"
node-releases "^1.0.0-alpha.15"

bsb-js@^1.0.1:
bsb-js@1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/bsb-js/-/bsb-js-1.0.2.tgz#b9e7af1dfdb8de6191bb36fdff43f59359a7dfe7"
integrity sha512-vJODKWqPx4vFQoH+1s4l4ozys9UrJne1gu1G4AcPi/FZlJXdHHYtsYPy+FVHqaCWH6nlR9jh7dhVraVoGx+wPg==
Expand Down

0 comments on commit 9136cdc

Please sign in to comment.