mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-09 11:22:44 +08:00
removed unused code
This commit is contained in:
+1
-2
@@ -7,7 +7,6 @@ var generalUtils = require('../util.js');
|
|||||||
var ReactWebpackGenerator = module.exports = function ReactWebpackGenerator(args, options, config) {
|
var ReactWebpackGenerator = module.exports = function ReactWebpackGenerator(args, options, config) {
|
||||||
yeoman.generators.Base.apply(this, arguments);
|
yeoman.generators.Base.apply(this, arguments);
|
||||||
this.option('es6');
|
this.option('es6');
|
||||||
// this.es6 = this.options.es6;
|
|
||||||
|
|
||||||
this.argument('appname', { type: String, required: false });
|
this.argument('appname', { type: String, required: false });
|
||||||
this.appname = this.appname || path.basename(process.cwd());
|
this.appname = this.appname || path.basename(process.cwd());
|
||||||
@@ -100,7 +99,7 @@ ReactWebpackGenerator.prototype.packageFiles = function () {
|
|||||||
this.reactRouter = this.env.options.reactRouter;
|
this.reactRouter = this.env.options.reactRouter;
|
||||||
this.stylesLanguage = this.env.options.stylesLanguage;
|
this.stylesLanguage = this.env.options.stylesLanguage;
|
||||||
this.template('../../templates/common/_package.json', 'package.json');
|
this.template('../../templates/common/_package.json', 'package.json');
|
||||||
this.template('../../templates/common/_webpack.config.js', 'webpack.config.js', this, {es6:true});
|
this.template('../../templates/common/_webpack.config.js', 'webpack.config.js');
|
||||||
this.template('../../templates/common/_webpack.dist.config.js', 'webpack.dist.config.js');
|
this.template('../../templates/common/_webpack.dist.config.js', 'webpack.dist.config.js');
|
||||||
this.copy('../../templates/common/Gruntfile.js', 'Gruntfile.js');
|
this.copy('../../templates/common/Gruntfile.js', 'Gruntfile.js');
|
||||||
this.copy('../../templates/common/gitignore', '.gitignore');
|
this.copy('../../templates/common/gitignore', '.gitignore');
|
||||||
|
|||||||
Reference in New Issue
Block a user