mirror of https://github.com/embarklabs/embark.git
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:
commit
b3b8374d00
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue