Skip to content

Commit 2792f0f

Browse files
committed
test: fix webpack config for ssr test
1 parent a6dd607 commit 2792f0f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/utils/build.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,11 @@ export function createWebpackConfig (config = {}) {
155155
NODE_ENV: '"test"'
156156
}
157157
}),
158-
new CopyWebpackPlugin([
159-
{ from: path.join(path.dirname(config.entry), 'static') }
160-
])
158+
new CopyWebpackPlugin({
159+
patterns: [
160+
{ from: path.join(path.dirname(config.entry), 'static') }
161+
]
162+
})
161163
],
162164
resolve: {
163165
alias: {

0 commit comments

Comments
 (0)