copy-webpack-plugin
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -5,2 +5,11 @@ # Change Log | ||
<a name="5.0.1"></a> | ||
## [5.0.1](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v4.6.0...v5.0.1) (2019-03-11) | ||
### Bug Fixes | ||
* respect base of `glob` for context dependencies ([#352](https://github.com/webpack-contrib/copy-webpack-plugin/issues/352)) ([5b407f1](https://github.com/webpack-contrib/copy-webpack-plugin/commit/5b407f1)) | ||
<a name="5.0.0"></a> | ||
@@ -7,0 +16,0 @@ # [5.0.0](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v4.6.0...v5.0.0) (2019-02-20) |
@@ -12,2 +12,4 @@ "use strict"; | ||
var _globParent = _interopRequireDefault(require("glob-parent")); | ||
var _normalizePath = _interopRequireDefault(require("normalize-path")); | ||
@@ -104,3 +106,3 @@ | ||
contextDependencies.add(pattern.context); | ||
contextDependencies.add((0, _globParent.default)(pattern.absoluteFrom)); | ||
} else { | ||
@@ -107,0 +109,0 @@ const newWarning = new Error(`unable to locate '${pattern.from}' at '${pattern.absoluteFrom}'`); |
{ | ||
"name": "copy-webpack-plugin", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Copy files && directories with webpack", | ||
@@ -46,2 +46,3 @@ "license": "MIT", | ||
"globby": "^7.1.1", | ||
"glob-parent": "^3.1.0", | ||
"is-glob": "^4.0.0", | ||
@@ -48,0 +49,0 @@ "loader-utils": "^1.1.0", |
@@ -376,3 +376,3 @@ <div align="center"> | ||
| :---------------------------------: | :---------: | :------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| [`logLevel`](#logLevel) | `{String}` | **`'warning'`** | Level of messages that the module will log | | ||
| [`logLevel`](#logLevel) | `{String}` | **`'warn'`** | Level of messages that the module will log | | ||
| [`ignore`](#ignore) | `{Array}` | `[]` | Array of globs to ignore (applied to `from`) | | ||
@@ -389,3 +389,3 @@ | [`context`](#context) | `{String}` | `compiler.options.context` | A path that determines how to interpret the `from` path, shared for all patterns | | ||
- `info` | ||
- `warn` | ||
- `warn` (default) | ||
- `error` | ||
@@ -399,4 +399,2 @@ - `silent` | ||
##### `'info'` | ||
**webpack.config.js** | ||
@@ -406,26 +404,6 @@ | ||
module.exports = { | ||
plugins: [new CopyPlugin([...patterns], { debug: 'info' })], | ||
plugins: [new CopyPlugin([...patterns], { logLevel: 'debug' })], | ||
}; | ||
``` | ||
##### `'debug'` | ||
**webpack.config.js** | ||
```js | ||
module.exports = { | ||
plugins: [new CopyPlugin([...patterns], { debug: 'debug' })], | ||
}; | ||
``` | ||
##### `'warning' (default)` | ||
**webpack.config.js** | ||
```js | ||
module.exports = { | ||
plugins: [new CopyPlugin([...patterns], { debug: true })], | ||
}; | ||
``` | ||
#### `ignore` | ||
@@ -432,0 +410,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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
51624
475
0
12
461
+ Addedglob-parent@^3.1.0