Skip to content

Commit

Permalink
feat(build-config): introduce build, develop, node exports
Browse files Browse the repository at this point in the history
these new exports provide loaded webpack configs instead of their paths
  • Loading branch information
dmbch committed Feb 19, 2018
1 parent f402415 commit f4a6516
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/build-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@

var hopsConfig = require('hops-config');

module.exports = {
module.exports = exports = {
get build() {
return require(exports.buildConfig);
},
get develop() {
return require(exports.developConfig);
},
get node() {
return require(exports.nodeConfig);
},
buildConfig: hopsConfig.buildConfig
? hopsConfig.buildConfig
: require.resolve('./configs/build'),
Expand Down

0 comments on commit f4a6516

Please sign in to comment.