Skip to content

Commit 6aaac17

Browse files
committed
feat: upgrade copy-webpack-plugin to 6.2.0
1 parent ad8c3dc commit 6aaac17

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/webpack.config.prod.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,9 @@ module.exports = {
342342
publicPath: publicPath,
343343
}),
344344
// Copies the public folder to the build folder
345-
new CopyPlugin([{ from: './public/', to: './' }]),
345+
new CopyPlugin({
346+
patterns: [{ from: './public/', to: './' }],
347+
}),
346348
// Generate a service worker script that will precache, and keep up to date,
347349
// the HTML & assets that are part of the Webpack build.
348350
new workboxPlugin.GenerateSW({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"chalk": "4.1.0",
3131
"cli-table": "0.3.1",
3232
"connect-history-api-fallback": "1.6.0",
33-
"copy-webpack-plugin": "5.1.2",
33+
"copy-webpack-plugin": "6.2.0",
3434
"cosmiconfig": "7.0.0",
3535
"cross-spawn": "7.0.3",
3636
"css-loader": "4.3.0",

0 commit comments

Comments
 (0)