Skip to content

Commit 5be812f

Browse files
authored
Merge pull request #5 from chenpx976/master
fix: CopyWebpackPlugin config
2 parents c2674d4 + 645f170 commit 5be812f

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

webpack.config.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,18 @@ module.exports = (env, argv) => {
6161
new HtmlWebpackPlugin({
6262
template: 'index.html',
6363
}),
64-
new CopyWebpackPlugin([ {
65-
from: 'res/images',
66-
to: 'res/images',
67-
}, {
68-
from: 'res/sounds',
69-
to: 'res/sounds',
70-
} ]),
64+
new CopyWebpackPlugin({
65+
patterns: [
66+
{
67+
from: 'res/images',
68+
to: 'res/images',
69+
},
70+
{
71+
from: 'res/sounds',
72+
to: 'res/sounds',
73+
},
74+
],
75+
}),
7176
],
7277
output: {
7378
filename: 'index.js',

0 commit comments

Comments
 (0)