mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-10-28 13:00:47 +08:00
Move webpack configs to tempates
This commit is contained in:
1 parent
0601753a24
commit
6442075d71
3 files changed
+2
-1
No files matched your search
@@ -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');
|
||||
};
|
||||
|
||||
@@ -38,7 +38,6 @@ module.exports = {
|
||||
exclude: 'node_modules',
|
||||
loader: 'jshint'
|
||||
}],
|
||||
|
||||
loaders: [{
|
||||
test: /\.jsx$/,
|
||||
loader: 'react-hot!jsx-loader?harmony'
|
||||
File renamed without changes.
Reference in new issue
Block a user