Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack-contrib/copy-webpack-plugin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fb60b9b30c279742c4599def47725fa72b1c7fae
Choose a base ref
...
head repository: webpack-contrib/copy-webpack-plugin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 46af20a94e66115d551fed65fd745e4cd8d42aee
Choose a head ref

Commits on Oct 13, 2020

  1. Copy the full SHA
    bd09a24 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    36ff46a View commit details

Commits on Oct 21, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    93936a0 View commit details

Commits on Oct 22, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c892451 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    db2e3bf View commit details
  3. refactor: code (#543)

    evilebottnawi authored Oct 22, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b971374 View commit details
  4. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f98be10 View commit details

Commits on Oct 23, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b827c6e View commit details

Commits on Oct 28, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    87a8486 View commit details

Commits on Nov 3, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bc2833e View commit details
  2. Copy the full SHA
    fa5aa1b View commit details

Commits on Nov 13, 2020

  1. fix: watching (#555)

    evilebottnawi authored Nov 13, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b996923 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c92b5ee View commit details
  3. chore(release): 6.3.1

    alexander-akait committed Nov 13, 2020
    Copy the full SHA
    5215721 View commit details

Commits on Nov 19, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7b58fd9 View commit details
  2. chore(release): 6.3.2

    alexander-akait committed Nov 19, 2020
    Copy the full SHA
    7167645 View commit details

Commits on Dec 7, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9bc5416 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    db53937 View commit details
  3. Copy the full SHA
    6c11e21 View commit details

Commits on Dec 9, 2020

  1. refactor: next

    BREAKING CHANGE: yes
    cap-Bernardito authored Dec 9, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4cea28b View commit details

Commits on Dec 10, 2020

  1. refactor: code

    cap-Bernardito authored Dec 10, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c6f68a5 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5d5635f View commit details
  3. chore(release): 7.0.0

    alexander-akait committed Dec 10, 2020
    Copy the full SHA
    46af20a View commit details
Showing with 5,464 additions and 5,829 deletions.
  1. +1 −1 .eslintrc.js
  2. +1 −1 .github/workflows/nodejs.yml
  3. +1 −0 .gitignore
  4. +0 −1 .prettierrc.js
  5. +42 −0 CHANGELOG.md
  6. +294 −192 README.md
  7. +2 −2 babel.config.js
  8. +1 −1 commitlint.config.js
  9. +8 −8 globalSetup.js
  10. +2 −2 husky.config.js
  11. +2 −2 jest.config.js
  12. +2 −2 lint-staged.config.js
  13. +1,998 −3,181 package-lock.json
  14. +13 −16 package.json
  15. +1 −1 src/cjs.js
  16. +465 −257 src/index.js
  17. +37 −17 src/options.json
  18. +647 −248 test/CopyPlugin.test.js
  19. +388 −68 test/__snapshots__/CopyPlugin.test.js.snap
  20. +53 −36 test/__snapshots__/validate-options.test.js.snap
  21. +0 −486 test/cacheTransform-option.test.js
  22. +4 −4 test/cjs.test.js
  23. +55 −55 test/context-option.test.js
  24. +13 −13 test/filter-option.test.js
  25. +0 −147 test/flatten-option.test.js
  26. +87 −87 test/force-option.test.js
  27. +177 −178 test/from-option.test.js
  28. +119 −92 test/globOptions-option.test.js
  29. +4 −4 test/helpers/ChildCompiler.js
  30. +3 −8 test/helpers/PreCopyPlugin.js
  31. +2 −3 test/helpers/compile.js
  32. +3 −0 test/helpers/enter-with-asset-modules.js
  33. +19 −16 test/helpers/getCompiler.js
  34. +4 −4 test/helpers/index.js
  35. +3 −3 test/helpers/readAsset.js
  36. +2 −2 test/helpers/readAssets.js
  37. +1 −1 test/helpers/removeIllegalCharacterForWindows.js
  38. +19 −19 test/helpers/run.js
  39. +112 −0 test/info-option.test.js
  40. +11 −11 test/noErrorOnMissing.test.js
  41. +565 −129 test/to-option.test.js
  42. +36 −34 test/toType-option.test.js
  43. +142 −82 test/transform-option.test.js
  44. +0 −273 test/transformPath-option.test.js
  45. +125 −142 test/validate-options.test.js
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'],
extends: ["@webpack-contrib/eslint-config-webpack", "prettier"],
};
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.x, 12.x, 14.x]
webpack-version: [latest, next]
webpack-version: [latest]

runs-on: ${{ matrix.os }}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ npm-debug.log*
/reports
/node_modules
/test/fixtures/\[special\$directory\]
/test/outputs

.DS_Store
Thumbs.db
1 change: 0 additions & 1 deletion .prettierrc.js

This file was deleted.

42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,48 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [7.0.0](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.4.0...v7.0.0) (2020-12-10)


### ⚠ BREAKING CHANGES

* minimum supported webpack version is `5`
* the `flatten` option was removed in favor `[name].[ext]` value for the `to` option,
* the `transformPath` option was removed in favor `Function` type of the `to` option, look at [examples](https://github.com/webpack-contrib/copy-webpack-plugin#function)
* the `cacheTransform` option was removed in favor `Object` type of the `transform` option, look at [examples](https://github.com/webpack-contrib/copy-webpack-plugin#transform)
* migration on the `compilation.hooks.processAssets` hook
* empty filtered paths throw an error, you can disable this behaviour using the `noErrorOnMissing` option

## [6.4.0](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.3.2...v6.4.0) (2020-12-07)


### Features

* added the `info` option ([db53937](https://github.com/webpack-contrib/copy-webpack-plugin/commit/db53937016b7dbf494bc728f00242cd26541f6a3))
* added type `Function` for the `to` option ([#563](https://github.com/webpack-contrib/copy-webpack-plugin/issues/563)) ([9bc5416](https://github.com/webpack-contrib/copy-webpack-plugin/commit/9bc541694c0d0975c59586cedfea4a51d11f5278))

### [6.3.2](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.3.1...v6.3.2) (2020-11-19)


### Bug Fixes

* watching directories ([#558](https://github.com/webpack-contrib/copy-webpack-plugin/issues/558)) ([7b58fd9](https://github.com/webpack-contrib/copy-webpack-plugin/commit/7b58fd9a89e9b29578b30cb3119453e78e036ec2))

### [6.3.1](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.3.0...v6.3.1) (2020-11-13)


### Bug Fixes

* watching ([#555](https://github.com/webpack-contrib/copy-webpack-plugin/issues/555)) ([b996923](https://github.com/webpack-contrib/copy-webpack-plugin/commit/b9969230321df68ed235ed1861729837f234750e))

## [6.3.0](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.2.1...v6.3.0) (2020-11-03)


### Features

* added the `sourceFilename` info (original source filename) to assets info ([#542](https://github.com/webpack-contrib/copy-webpack-plugin/issues/542)) ([db2e3bf](https://github.com/webpack-contrib/copy-webpack-plugin/commit/db2e3bfae9322592c3a9af1e45d25df165b6b4e0))
* persistent cache between compilations (webpack@5 only) ([#541](https://github.com/webpack-contrib/copy-webpack-plugin/issues/541)) ([c892451](https://github.com/webpack-contrib/copy-webpack-plugin/commit/c8924512a34391ce92715a2b61fc4b0b91a9e10f))

### [6.2.1](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.2.0...v6.2.1) (2020-10-09)

### Chore
Loading