Skip to content

Commit

Permalink
fix(plugin-webpack): fix config resolution when providing a string
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed May 4, 2018
1 parent d59e744 commit 576844e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin/webpack/src/WebpackPlugin.ts
Expand Up @@ -28,7 +28,7 @@ export default class WebpackPlugin extends PluginBase<WebpackPluginConfig> {
}

private resolveConfig = (config: Configuration | string) => {
if (typeof config === 'string') return require(config) as Configuration;
if (typeof config === 'string') return require(path.resolve(path.dirname(this.baseDir), config)) as Configuration;
return config;
}

Expand Down

0 comments on commit 576844e

Please sign in to comment.