Skip to content

Commit df62363

Browse files
authored
chore!: bump copy-webpack-plugin to v8 (#6348)
1 parent 45eb462 commit df62363

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

docs/migrations/migrate-from-v4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ No longer supports generating project with `node-sass`. It has been [deprecated]
8787
* `html-webpack-plugin` is upgraded from v3 to v5, and for webpack 4 users, v4 will be used. More details are available in the [release announcement of `html-webpack-plugin` v4](https://dev.to/jantimon/html-webpack-plugin-4-has-been-released-125d) and the [full changelog](https://github.com/jantimon/html-webpack-plugin/blob/master/CHANGELOG.md).
8888
* `sass-loader` v7 support is dropped. See the v8 breaking changes at its [changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md#800-2019-08-29).
8989
* `postcss-loader` is upgraded from v3 to v5 (v4 for webpack 4 users). Most notably, `PostCSS` options (`plugin` / `syntax` / `parser` / `stringifier`) are moved into the `postcssOptions` field. More details available at the [changelog](https://github.com/webpack-contrib/postcss-loader/blob/master/CHANGELOG.md#400-2020-09-07).
90-
* `copy-webpack-plugin` is upgraded from v5 to v7 (v6 if you choose to stay at webpack 4). If you never customized its config through `config.plugin('copy')`, there should be no user-facing breaking changes. A full list of breaking changes is available at [`copy-webpack-plugin` v6.0.0 release](https://github.com/webpack-contrib/copy-webpack-plugin/releases/tag/v6.0.0) and [v7.0.0 release](https://github.com/webpack-contrib/copy-webpack-plugin/releases/tag/v7.0.0).
90+
* `copy-webpack-plugin` is upgraded from v5 to v8 (v6 if you choose to stay at webpack 4). If you never customized its config through `config.plugin('copy')`, there should be no user-facing breaking changes. A full list of breaking changes is available at [`copy-webpack-plugin` v6.0.0 changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md).
9191
* `file-loader` is upgraded from v4 to v6, and `url-loader` from v2 to v4. The `esModule` option is now turned on by default for non-Vue-2 projects. Full changelog available at [`file-loader` changelog](https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md) and [`url-loader` changelog](https://github.com/webpack-contrib/url-loader/blob/master/CHANGELOG.md).
9292
* `terser-webpack-plugin` is upgraded from v2 to v5 (v4 if you choose to stay at webpack 4), using terser 5 and some there are some changes in the options format. See full details in its [changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md).
9393
* When creating new projects, the default `less-loader` is updated from [v5 to v8](https://github.com/webpack-contrib/less-loader/blob/master/CHANGELOG.md)(v7 for webpack 4 users); `less` from [v3 to v4](https://github.com/less/less.js/pull/3573); `sass-loader` from [v8 to v11](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md) (v10 for webpack 4 users); `stylus-loader` from [v3 to v5](https://github.com/webpack-contrib/stylus-loader/blob/master/CHANGELOG.md) (v4 for webpack 4 users).

packages/@vue/cli-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"cli-highlight": "^2.1.10",
4444
"clipboardy": "^2.3.0",
4545
"cliui": "^7.0.4",
46-
"copy-webpack-plugin": "^7.0.0",
46+
"copy-webpack-plugin": "^8.0.0",
4747
"css-loader": "^5.1.1",
4848
"css-minimizer-webpack-plugin": "^1.2.0",
4949
"cssnano": "^5.0.0-rc.1",

yarn.lock

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4034,11 +4034,6 @@
40344034
dependencies:
40354035
vue-eslint-parser "^7.0.0"
40364036

4037-
"@vue/preload-webpack-plugin@^1.1.0":
4038-
version "1.1.2"
4039-
resolved "https://registry.yarnpkg.com/@vue/preload-webpack-plugin/-/preload-webpack-plugin-1.1.2.tgz#ceb924b4ecb3b9c43871c7a429a02f8423e621ab"
4040-
integrity sha512-LIZMuJk38pk9U9Ur4YzHjlIyMuxPlACdBIHH9/nGYVTsaGKOSnSuELiE8vS9wa+dJpIYspYUOqk+L1Q4pgHQHQ==
4041-
40424037
40434038
version "3.0.5"
40444039
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.0.5.tgz#c131d88bd6713cc4d93b3bb1372edb1983225ff0"
@@ -7824,17 +7819,16 @@ copy-webpack-plugin@^6.4.1:
78247819
serialize-javascript "^5.0.1"
78257820
webpack-sources "^1.4.3"
78267821

7827-
copy-webpack-plugin@^7.0.0:
7828-
version "7.0.0"
7829-
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-7.0.0.tgz#3506f867ca6e861ee2769d4deaf8fa0d2563ada9"
7830-
integrity sha512-SLjQNa5iE3BoCP76ESU9qYo9ZkEWtXoZxDurHoqPchAFRblJ9g96xTeC560UXBMre1Nx6ixIIUfiY3VcjpJw3g==
7822+
copy-webpack-plugin@^8.0.0:
7823+
version "8.0.0"
7824+
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-8.0.0.tgz#3db5efb80d492127507303d1842e35011e2f318f"
7825+
integrity sha512-sqGe2FsB67wV/De+sz5azQklADe4thN016od6m7iK9KbjrSc1SEgg5QZ0LN+jGx5aZR52CbuXbqOhoIbqzzXlA==
78317826
dependencies:
7832-
fast-glob "^3.2.4"
7827+
fast-glob "^3.2.5"
78337828
glob-parent "^5.1.1"
7834-
globby "^11.0.1"
7835-
loader-utils "^2.0.0"
7829+
globby "^11.0.2"
78367830
normalize-path "^3.0.0"
7837-
p-limit "^3.0.2"
7831+
p-limit "^3.1.0"
78387832
schema-utils "^3.0.0"
78397833
serialize-javascript "^5.0.1"
78407834

0 commit comments

Comments
 (0)