unstale

npm / copy-webpack-plugin

copy-webpack-plugin

What changed in copy-webpack-plugin 5 to 14, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

30 breaking4 new APIs and options3 behavior and defaults2 tooling8 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

copy-webpack-plugin 141 changes

Breaking changes 1

copy-webpack-plugin 132 changes

Breaking changes 1

  • The concurrency option is now limited to files.

    13.0.0release notes

Fixes and other changes 1

  • The order of patterns provided by the developer is now respected.

    13.0.0release notes

copy-webpack-plugin 88 changes

Breaking changes 7

  • [emoji] was removed.

    8.0.0release notes

  • [ext] no longer requires a preceding dot; change [name].[ext] to [name][ext].

    8.0.0release notes

  • [folder] was removed.

    8.0.0release notes

  • [fullhash] now uses the build hash, as in webpack, instead of the file content hash; use [contenthash] for the content hash.

    8.0.0release notes

  • [hash] now uses the build hash, as in webpack, instead of the file content hash; use [contenthash] for the content hash.

    8.0.0release notes

  • This placeholder syntax is no longer supported; configure output.hashDigest, output.hashDigestLength, and output.hashFunction instead.

    8.0.0release notes

  • [N] was removed; use the to option as a function instead.

    8.0.0release notes

New APIs and options 1

copy-webpack-plugin 76 changes

Breaking changes 5

  • The cacheTransform option was removed; use the Object type of the transform option instead.

    7.0.0release notes

  • Empty filtered paths now throw an error; this behavior can be disabled with the noErrorOnMissing option.

    7.0.0release notes

  • The flatten option was removed; use the [name].[ext] value for the to option instead.

    7.0.0release notes

  • The transformPath option was removed; use the Function type of the to option instead.

    7.0.0release notes

  • The minimum supported webpack version is now 5.

    7.0.0release notes

Tooling 1

  • The plugin migrated to the compilation.hooks.processAssets hook.

    7.0.0release notes

copy-webpack-plugin 619 changes

Breaking changes 12

  • The cache option was renamed to cacheTransform; when cacheTransform is an object, it should contain only directory and keys properties.

    6.0.0release notes

  • The plugin now accepts a single object containing patterns and options instead of separate constructor arguments.

    6.0.0release notes

  • The copyUnmodified option was removed without a replacement.

    6.0.0release notes

  • The from option now accepts only a string; glob and dot settings move to globOptions.

    6.0.0release notes

  • The ignore option is removed in favor of globOptions.ignore.

    6.0.0release notes

  • logLever was removed in favor of infrastructureLogging.level.

    6.0.0release notes

  • A missing file now produces an error instead of a warning.

    6.0.0release notes

  • The minimum supported Node.js version is 10.13.

    6.0.0release notes

  • The global context option was removed in favor of pattern.context.

    6.0.0release notes

  • The global ignore option was removed in favor of pattern.globOptions.ignore.

    6.0.0release notes

  • The test option was removed in favor of transformPath.

    6.0.0release notes

  • Version 2 of webpack-dev-server is no longer supported.

    6.0.0release notes

New APIs and options 3

Behavior and default changes 1

  • The plugin migrates to the compilation.additionalAssets hook.

    6.0.0release notes

Tooling 1

  • The plugin migrated to the webpack built-in logger.

    6.0.0release notes

Fixes and other changes 2

copy-webpack-plugin 511 changes

Breaking changes 4

  • An error is thrown if from is an empty string.

    5.0.0release notes

  • The debug option was renamed to logLevel, which accepts the string values trace, debug, info, warn, error, and silent.

    5.0.0release notes

  • Support for Node.js versions below 6.9 was dropped.

    5.0.0release notes

  • Support for webpack versions below 4 was dropped.

    5.0.0release notes

Behavior and default changes 2

  • The plugin supports copying nested directories and files in symlinks.

    5.0.0release notes

  • The plugin emits a warning instead of an error when a file doesn't exist.

    5.0.0release notes

Fixes and other changes 5

  • The plugin handles new files added in watch mode when using glob.

    5.0.0release notes

  • [contenthash] is handled as a template.

    5.0.0release notes

  • Only modified files are copied when patterns have different to values and the same context.

    5.0.0release notes

  • Path segment separation is normalized so mixed / and \ separators cause no problems.

    5.0.0release notes

  • The plugin prototype changed so the correct plugin name can be obtained.

    5.0.0release notes