Skip to content

Commit 7f4a51b

Browse files
committed
Support webpack configurations that export a function
1 parent 985a57d commit 7f4a51b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/configure.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ export default function configure(options) {
5353
}
5454
}
5555

56+
if (typeof webpackConfig==='function') {
57+
webpackConfig = webpackConfig({ karmatic: true }, { mode: 'development', karmatic: true });
58+
}
5659
webpackConfig = webpackConfig || {};
5760

5861
let loaders = [].concat(delve(webpackConfig, 'module.loaders') || [], delve(webpackConfig, 'module.rules') || []);

0 commit comments

Comments
 (0)