mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-05 16:30:40 +08:00
Add gitignore
This commit is contained in:
@@ -111,6 +111,9 @@ module.exports = generator.Base.extend({
|
||||
if(fs.lstatSync(fullPath).isDirectory()) {
|
||||
this.bulkDirectory(item, item);
|
||||
} else {
|
||||
if (item === '.npmignore') {
|
||||
this.copy(item, '.gitignore');
|
||||
}
|
||||
this.copy(item, item);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user