Skip to content

Commit 9a349a8

Browse files
authored
Merge pull request #11 from bem/yarastqt.fix-webpack-patch
Return config after patch
2 parents a315809 + e0ee667 commit 9a349a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,14 @@ function withGlobalCss() {
5151
return (nextConfig) => {
5252
const config = {
5353
webpack: (config, { isServer }) => {
54-
patchWebpackConfig(config, { isServer })
54+
return patchWebpackConfig(config, { isServer })
5555
},
5656
}
5757
return { ...nextConfig, ...config }
5858
}
5959
}
6060

61-
6261
module.exports = {
6362
withGlobalCss,
64-
patchWebpackConfig
63+
patchWebpackConfig,
6564
}

0 commit comments

Comments
 (0)