Fix passing options and add flexibility for component path

This commit is contained in:
Maksim Ryzhikov
2014-07-14 15:19:59 +04:00
parent 2b2864de83
commit f4068e7770
3 changed files with 15 additions and 16 deletions
+3 -3
View File
@@ -14,11 +14,11 @@ var ReactWebpackGenerator = module.exports = function ReactWebpackGenerator(args
args = ['main'];
if (typeof this.env.options.appPath === 'undefined') {
this.env.options.appPath = this.env.options.appPath || 'src';
if (typeof this.options.appPath === 'undefined') {
this.options.appPath = this.options.appPath || 'src';
}
this.appPath = this.env.options.appPath;
this.appPath = this.options.appPath;
this.hookFor('react-webpack:common', {
args: args