Skip to content

Commit

Permalink
Add missing env variable for webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalbennani committed Mar 12, 2018
1 parent 180d71a commit 0844645
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resolvers/webpack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ exports.resolve = function (source, file, settings) {

var configPath = get(settings, 'config')
, configIndex = get(settings, 'config-index')
, env = get(settings, 'env')
, packageDir

log('Config path from settings:', configPath)
Expand Down Expand Up @@ -82,7 +83,7 @@ exports.resolve = function (source, file, settings) {
}

if (typeof webpackConfig === 'function') {
webpackConfig = webpackConfig()
webpackConfig = webpackConfig(env)
}

if (Array.isArray(webpackConfig)) {
Expand Down

0 comments on commit 0844645

Please sign in to comment.