question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ignore folders and/or ignore .git folder by default

See original GitHub issue

If I start servor at the root of my git repo a refresh is triggered whenever I run git status, git add, git commit etc.

It’s not a huge issue, but there’s no way currently of specifying folders for the watch to ignore. It might be nice to include such an option, it might also make sense to ignore some common folders like .git or node_modules.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lukejacksonncommented, Apr 27, 2019

Doesn’t look like this is causing anyone any trouble so I am going to close here!

0reactions
lukejacksonncommented, Dec 11, 2019

In my experience build steps will often move the index.html into the dist folder too… but I get your point. The reason I am pushing back on this, is that it is a very awkward option to input via a CLI. It would be much more suited to having in a config file like a .babelrc or netlify.toml which I am not massively opposed to but is a different conversation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.gitignore File – How to Ignore Files and Folders in Git
Inside .gitignore , you can tell Git to ignore only a single file or a single folder by mentioning the name or pattern...
Read more >
Ignoring Files and Directories in Git (.gitignore) - Linuxize
The .gitignore file allows you to exclude files from being checked into the repository. It contains globbing patterns that describe which ...
Read more >
Git default ignore Configure directory - Stack Overflow
Have a look in the folder itself for a file called .gitignore. Putting a .gitignore file in a directory is one way to...
Read more >
Ignoring Specific Files, Folders and Patterns with the .gitignore ...
I'll type "less .gitignore" and press Enter. (less is a terminal application used to read text files.) There are two sections here by...
Read more >
How to Ignore Git Folders and Directories .gitignore - YouTube
Here's a quick overview of how to use the . gitignore file to ignore Git folders and directories.There's no big trick to ignoring...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found