eject-webpack cmd should report error and exit if run outside DApp

This commit is contained in:
Michael Bradley, Jr 2018-09-11 19:37:06 -05:00
parent 8304657dc1
commit c662ab362b
1 changed files with 4 additions and 0 deletions

View File

@ -316,6 +316,10 @@ class Cmd {
.command('eject-webpack')
.description(__('copy the default webpack config into your dapp for customization'))
.action(function() {
embark.initConfig('development', {
embarkConfig: 'embark.json',
interceptLogs: false
});
embark.ejectWebpack();
});
}