const fs = require('fs')
const resolve = require('path').resolve

module.exports = ({context, env}) => {
  var configFileName = env.config || 'wpc.conf.js'
  var custom = resolve(context, configFileName)
  if (fs.existsSync(custom)) {
    return require(custom)
  }
}

@@ -1,12 +1,61 @@
+// Accepts a custom configuration inside project%0A
 const fs = r
@@ -285,29 +285,165 @@
     
-return require(custom
+// instead of just use: return require(custom)%0A    return %5Brequire(custom)%5D // hack to support a function (myself) that returns a function (result of require
 )%0A  

support custom config that returns a function