Skip to content

Commit c40bfb0

Browse files
committed
Update the copy plugin config
1 parent 0df85fd commit c40bfb0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

webpack/webpack.publish.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ module.exports = {
4444
template: './working/index.html',
4545
historyApiFallback: true,
4646
}),
47-
new CopyPlugin([
48-
{
49-
from: path.join(process.cwd(), '/public'),
50-
to: path.join(process.cwd(), '/dist'),
51-
},
52-
]),
47+
new CopyPlugin({
48+
patterns: [
49+
{
50+
from: path.join(process.cwd(), '/public'),
51+
to: path.join(process.cwd(), '/dist'),
52+
},
53+
],
54+
}),
5355
],
5456
resolve: {
5557
extensions: ['*', '.mjs', '.js', '.jsx'],

0 commit comments

Comments
 (0)