diff options
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/gitignore | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/gitignore b/railties/lib/rails/generators/rails/app/templates/gitignore index 0e66cc4237..bdcbe8d629 100644 --- a/railties/lib/rails/generators/rails/app/templates/gitignore +++ b/railties/lib/rails/generators/rails/app/templates/gitignore @@ -21,5 +21,10 @@ !/tmp/.keep <% end -%> +<% if options[:yarn] -%> +# Ignore node modules. +/node_modules/* + +<% end -%> # Ignore Byebug command history file. .byebug_history |