From 33e42f3ede8b01f95868730c45b37bf601212c96 Mon Sep 17 00:00:00 2001 From: Emil Stenberg Date: Wed, 10 Dec 2014 09:48:37 +0100 Subject: [PATCH] added flag --es6 --- app/index.js | 2 ++ templates/common/_webpack.config.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/index.js b/app/index.js index 94ba957..3be315c 100644 --- a/app/index.js +++ b/app/index.js @@ -6,12 +6,14 @@ var generalUtils = require('../util.js'); var ReactWebpackGenerator = module.exports = function ReactWebpackGenerator(args, options, config) { yeoman.generators.Base.apply(this, arguments); + this.option('es6'); this.argument('appname', { type: String, required: false }); this.appname = this.appname || path.basename(process.cwd()); this.appname = this._.camelize(this._.slugify(this._.humanize(this.appname))); this.scriptAppName = this._.capitalize(this.appname) + generalUtils.appName(this); + args = ['main']; if (typeof this.options.appPath === 'undefined') { diff --git a/templates/common/_webpack.config.js b/templates/common/_webpack.config.js index 8e41144..d9856e5 100644 --- a/templates/common/_webpack.config.js +++ b/templates/common/_webpack.config.js @@ -31,7 +31,6 @@ module.exports = { resolve: { extensions: ['', '.js', '.jsx'] }, - module: { preLoaders: [{ test: '\\.js$',