unused-files-webpack-plugin
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.0.5"></a> | ||
## [2.0.5](https://github.com/tomchentw/unused-files-webpack-plugin/compare/v2.0.4...v2.0.5) (2016-09-20) | ||
### Bug Fixes | ||
* **index.js:** if bail is set, callback with error ([#11](https://github.com/tomchentw/unused-files-webpack-plugin/issues/11)) ([23b85ad](https://github.com/tomchentw/unused-files-webpack-plugin/commit/23b85ad)), closes [#10](https://github.com/tomchentw/unused-files-webpack-plugin/issues/10) | ||
<a name="2.0.4"></a> | ||
@@ -7,0 +17,0 @@ ## [2.0.4](https://github.com/tomchentw/unused-files-webpack-plugin/compare/v2.0.3...v2.0.4) (2016-07-14) |
@@ -61,6 +61,13 @@ "use strict"; | ||
var handleError = function handleError(err) { | ||
if (compilation.bail) { | ||
done(err); | ||
} else { | ||
compilation.errors.push(err); | ||
} | ||
}; | ||
(0, _glob2.default)(this.options.pattern, globOptions, function (err, files) { | ||
if (err) { | ||
compilation.errors.push(err); | ||
done(); | ||
handleError(err); | ||
return; | ||
@@ -78,7 +85,7 @@ } | ||
if (_this2.options.failOnUnused) { | ||
compilation.errors.push(error); | ||
handleError(error); | ||
} else { | ||
compilation.warnings.push(error); | ||
done(); | ||
} | ||
done(); | ||
}); | ||
@@ -85,0 +92,0 @@ } |
{ | ||
"name": "unused-files-webpack-plugin", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Glob all files that are not compiled by webpack under webpack's context", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -34,6 +34,13 @@ import { | ||
const handleError = err => { | ||
if (compilation.bail) { | ||
done(err); | ||
} else { | ||
compilation.errors.push(err); | ||
} | ||
}; | ||
glob(this.options.pattern, globOptions, (err, files) => { | ||
if (err) { | ||
compilation.errors.push(err); | ||
done(); | ||
handleError(err); | ||
return; | ||
@@ -53,7 +60,7 @@ } | ||
if (this.options.failOnUnused) { | ||
compilation.errors.push(error); | ||
handleError(error); | ||
} else { | ||
compilation.warnings.push(error); | ||
done(); | ||
} | ||
done(); | ||
}); | ||
@@ -60,0 +67,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20613
259
1