This commit is contained in:
emizzle 2018-10-12 10:14:29 +11:00 committed by Pascal Precht
parent 91e5e9c990
commit 64fdc691c4
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 0 additions and 8 deletions

View File

@ -26,14 +26,7 @@ class WebpackConfigReader {
// + array of named config objects
// + config object
if (typeof config === 'function') {
// if(Promise.resolve(config)){
// return config(this.webpackConfigName).then(config => {
// callback(null, config);
// });
// }
config = await config(this.webpackConfigName);
//return callback(null, config);
} else if (Array.isArray(config)) {
config = config.filter(cfg => cfg.name === this.webpackConfigName);
if (!config.length) {
@ -43,7 +36,6 @@ class WebpackConfigReader {
console.warn(`detected ${config.length} webpack configs having the name '${this.webpackConfigName}', using the first one`);
}
config = config[0];
//return callback(null, config);
}
callback(null, config);
} catch (e) {