Merge pull request #812 from embark-framework/bug_fix/eject-webpack-outside-dapp

eject-webpack cmd should report error and exit if run outside DApp
This commit is contained in:
Michael Bradley 2018-09-12 08:41:08 -05:00 committed by GitHub
commit b3b8374d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
});
}