Skip to content

Commit 2eed83b

Browse files
authored
Bump copy-webpack-plugin to 6.4.1 (#6285)
1 parent 34d380d commit 2eed83b

File tree

3 files changed

+200
-98
lines changed

3 files changed

+200
-98
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"babel-loader": "^8.0.5",
107107
"babel-plugin-istanbul": "^6.1.1",
108108
"babel-plugin-transform-builtin-extend": "^1.1.2",
109-
"copy-webpack-plugin": "^5.1.2",
109+
"copy-webpack-plugin": "^6.4.1",
110110
"css-loader": "^1.0.1",
111111
"cypress": "6.0.1",
112112
"enzyme": "^3.8.0",

webpack.config.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,15 @@ const config = {
109109
fileName: "asset-manifest.json",
110110
publicPath: ""
111111
}),
112-
new CopyWebpackPlugin([
113-
{ from: "client/app/assets/robots.txt" },
114-
{ from: "client/app/unsupported.html" },
115-
{ from: "client/app/unsupportedRedirect.js" },
116-
{ from: "client/app/assets/css/*.css", to: "styles/", flatten: true },
117-
{ from: "client/app/assets/fonts", to: "fonts/" }
118-
]),
112+
new CopyWebpackPlugin({
113+
patterns: [
114+
{ from: "client/app/assets/robots.txt" },
115+
{ from: "client/app/unsupported.html" },
116+
{ from: "client/app/unsupportedRedirect.js" },
117+
{ from: "client/app/assets/css/*.css", to: "styles/", flatten: true },
118+
{ from: "client/app/assets/fonts", to: "fonts/" }
119+
],
120+
}),
119121
isHotReloadingEnabled && new ReactRefreshWebpackPlugin({ overlay: false })
120122
].filter(Boolean),
121123
optimization: {

0 commit comments

Comments
 (0)