Reputation: 175
I have the case, that I need to exclude a folder in WebStorm from indexing but not from staging to git. It is a folder /dist/
with built files of the project which means i have duplicated lines of code.
Avoiding indexing on that folder means I have to remember every time I run the build and commit it to add the files manually. As I have a GitHub action that deploys the code to FTP on commit, the run fails because I have to delete all files prior to upload as Parcel (bundler) gives them random names on build.
How would I deal with that?
I haven't found a similar question, excluding the folder is the only way so far.
EDIT: this is what marking as excluded looks like(red means not staged, although silently add created files + external files are activated) Image of directories
Upvotes: 0
Views: 1451