diff --git a/app/index.js b/app/index.js index 455071b..edde6ea 100644 --- a/app/index.js +++ b/app/index.js @@ -94,6 +94,8 @@ ReactWebpackGenerator.prototype.createIndexHtml = function createIndexHtml() { ReactWebpackGenerator.prototype.packageFiles = function () { this.reactRouter = this.env.options.reactRouter; this.template('../../templates/common/_package.json', 'package.json'); + this.template('../../templates/common/_webpack.config.js', 'webpack.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/gitignore', '.gitignore'); }; diff --git a/templates/common/root/webpack.config.js b/templates/common/_webpack.config.js similarity index 99% rename from templates/common/root/webpack.config.js rename to templates/common/_webpack.config.js index 4c69e48..d66ea2b 100644 --- a/templates/common/root/webpack.config.js +++ b/templates/common/_webpack.config.js @@ -38,7 +38,6 @@ module.exports = { exclude: 'node_modules', loader: 'jshint' }], - loaders: [{ test: /\.jsx$/, loader: 'react-hot!jsx-loader?harmony' diff --git a/templates/common/root/webpack.dist.config.js b/templates/common/_webpack.dist.config.js similarity index 100% rename from templates/common/root/webpack.dist.config.js rename to templates/common/_webpack.dist.config.js