Stop indexing minified js files

Answered

In my project we have minified js files generated with an external tool.
When these files change IDEA will reindex them, becoming unresponsive.

There's no point in reindexing these files, since the non-minified versions are already indexed.

I'd like to somehow configure IDEA to not index certain minified js files.
I'd like to keep these minified js files in the project though, since I need to have them available in the project when I do git commit.

Thank you for your help.

0
5 comments

To exclude from indexing you can mark individual files as a plain text or mark all folder as excluded, see Excluding Files from Projects.

1

Is there an option to simply not index files that are in .gitignore pattern ?    My repo has hundreds of minified JS files it is cumbersome to right clik them one by one to mark as plain text seems silly. 

0

@Derrick

Please check Excluding files and folders by name patterns section of the mentioned documentation page.

Ability to not index files from .gitignore has been added in 2019.3 version of IntelliJ IDEA:

https://youtrack.jetbrains.com/issue/IDEA-140714

0

Okay @Konstantin Annikov thanks I have 2019.3 but how to enable this feature?    My .gitignore file excludes bundels but Webstorm is still trying to index them. 

0

Now it is available only as a registry option: 

https://i.imgur.com/FH98agW.png

2

Please sign in to leave a comment.