ignore-emit-webpack-plugin
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "ignore-emit-webpack-plugin", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Prevents ignored files from being emitted during a Webpack build", | ||
@@ -5,0 +5,0 @@ "main": "ignore-emit-webpack-plugin.js", |
@@ -7,3 +7,3 @@ # Ignore Emit Webpack plugin | ||
Even though it was tested with webpack 3 and works great, | ||
the deep implication of this are not perfectly clear to me | ||
you can easily ignore file by accident - use with care. | ||
@@ -13,2 +13,3 @@ ## Quick Usage | ||
```sh | ||
npm i --save-dev ignore-emit-webpack-plugin | ||
@@ -23,3 +24,3 @@ ``` | ||
// ... | ||
plugins: [new IgnoreEmitPlugin(/\.map$/)] | ||
plugins: [ new IgnoreEmitPlugin(/\.map$/) ] | ||
// ... | ||
@@ -38,3 +39,3 @@ }; | ||
- patterns `{RegExp|string|Array.<RegExp|string>}` - regex, string or array with mixed regex/strings (deep nesting allowed), | ||
- **patterns** `{RegExp|string|Array.<RegExp|string>}` - regex, string or array with mixed regex/strings (deep nesting allowed), | ||
to match against the **OUTPUT** path of assets. | ||
@@ -59,3 +60,3 @@ | ||
new IgnoreEmitPlugin('file.js'); // both file.js and dir/file.js ignored | ||
new IgnoreEmitPlugin('file.js'); // both file.js and dir/file.js ignored | ||
new IgnoreEmitPlugin(/\/file\.js/); // only dir/file.js is ignored | ||
@@ -66,4 +67,4 @@ new IgnoreEmitPlugin(/^file\.js/); // only file.js is ignored | ||
- options `{object}` - optional, options object | ||
- options.debug `{boolean}` - optional, prints extra logs | ||
- **options** `{object}` - optional, options object | ||
- options.debug `{boolean}` - prints extra logs | ||
@@ -70,0 +71,0 @@ ## I want to help! |
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
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
6966
69