Skip to content

Commit

Permalink
fix: webpack config override
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrodMFlesch committed Dec 30, 2020
1 parent e614a6f commit 8401400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/webpack/getDevConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default (payloadConfig: Config): Configuration => {
});

if (payloadConfig.admin.webpack && typeof payloadConfig.admin.webpack === 'function') {
config = payloadConfig.webpack(config);
config = payloadConfig.admin.webpack(config);
}

return config;
Expand Down
2 changes: 1 addition & 1 deletion src/webpack/getProdConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default (payloadConfig: Config): Configuration => {
}

if (payloadConfig.admin.webpack && typeof payloadConfig.admin.webpack === 'function') {
config = payloadConfig.webpack(config);
config = payloadConfig.admin.webpack(config);
}

return config;
Expand Down

0 comments on commit 8401400

Please sign in to comment.