fix appname bug

This commit is contained in:
Yonatan Schreiber committed 2015-04-04 15:29:03 +03:00
1 parent f7bb3c2b80
commit 27d8346e2a
2 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -15,7 +15,6 @@ var ReactWebpackGenerator = module.exports = function ReactWebpackGenerator(args
this.config.set('app-name', this.appname);
args = ['main'];
if (typeof this.options.appPath === 'undefined') {
this.options.appPath = this.options.appPath || 'src';
@@ -23,6 +22,8 @@ var ReactWebpackGenerator = module.exports = function ReactWebpackGenerator(args
this.appPath = this.options.appPath;
args = [this.scriptAppName];
this.composeWith('react-webpack:common', {
args: args
});