Skip to content

Commit a8de1d4

Browse files
committed
Bump copy-webpack-plugin to 6.4.0
1 parent 2df10e2 commit a8de1d4

File tree

3 files changed

+136
-127
lines changed

3 files changed

+136
-127
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"balanced-match": "0.2.0",
3030
"canonical-json": "0.0.4",
3131
"cookie": "0.4.0",
32-
"copy-webpack-plugin": "4.6.0",
32+
"copy-webpack-plugin": "6.4.0",
3333
"core-js": "3.6.5",
3434
"detect-node": "2.0.3",
3535
"file-loader": "6.2.0",

webpack.client.config.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,12 @@ if (PRODUCTION_MODE) {
220220
}
221221

222222
plugins.push.apply(plugins, [
223-
new CopyWebpackPlugin([
224-
{from: 'favicon.ico', to: '.'},
225-
{from: 'robots.txt.*', to: '.'},
226-
], {context: './root/'}),
223+
new CopyWebpackPlugin({
224+
patterns: [
225+
{context: './root/', from: 'favicon.ico', to: '.'},
226+
{context: './root/', from: 'robots.txt.*', to: '.'},
227+
],
228+
}),
227229

228230
new ManifestPlugin({
229231
fileName: 'rev-manifest.json',

0 commit comments

Comments
 (0)