Skip to content

Commit

Permalink
Merge pull request #31 from whatever-company/master
Browse files Browse the repository at this point in the history
Continue compilation in case of error
  • Loading branch information
ericclemmons committed Jul 18, 2014
2 parents 3ebd170 + 8ef7f0e commit 1949095
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ module.exports = function(grunt) {

try {
compiled.push(transform(grunt.file.read(file), options));
next();
} catch (e) {
grunt.event.emit('react.error', file, e);
grunt.fail.warn(e);
} finally {
next();
}
}, function () {
grunt.file.write(destFile, compiled.join(grunt.util.normalizelf(grunt.util.linefeed)));
Expand Down

0 comments on commit 1949095

Please sign in to comment.