anybar-webpack
Advanced tools
Comparing version
@@ -12,2 +12,7 @@ var anybarSocket = require('./anybar-socket'); | ||
if (process.platform !== 'darwin') { | ||
return console.log('\x1b[41m\x1b[33m%s\x1b[0m', ' AnybarWebpackPlugin should be used with AnyBar app, which is OS X only! '); | ||
} | ||
var _this = this; | ||
@@ -20,10 +25,5 @@ | ||
compiler.plugin('should-emit', function (compilation) { | ||
compiler.plugin('done', function (stats) { | ||
compilation.errors.length ? _this.fail() : _this.success(); | ||
}); | ||
compiler.plugin('failed', function() { | ||
_this.success(); | ||
stats.hasErrors() ? _this.fail() : _this.success(); | ||
}); | ||
@@ -30,0 +30,0 @@ |
{ | ||
"name": "anybar-webpack", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Webpack plugin for AnyBar", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -29,3 +29,2 @@ # AnybarWebpackPlugin | ||
``` | ||
[`NoErrorsPlugin`](http://webpack.github.io/docs/list-of-plugins.html#noerrorsplugin) plugin suppresses compilation errors, so if you are using one, be sure to include it after `AnybarWebpackPlugin`. | ||
@@ -32,0 +31,0 @@ ## ToDo |
9788
-1.14%33
-2.94%