Move webpack configs to tempates

This commit is contained in:
ColCh 2014-11-02 16:03:43 +03:00
parent 0601753a24
commit 6442075d71
3 changed files with 2 additions and 1 deletions

View File

@ -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');
};

View File

@ -38,7 +38,6 @@ module.exports = {
exclude: 'node_modules',
loader: 'jshint'
}],
loaders: [{
test: /\.jsx$/,
loader: 'react-hot!jsx-loader?harmony'