Add javascript modules directory

Answered

I'm using webpack and IntelliJ IDEA on a project, where webpack is configured to look for modules on several directories:

resolve: {
    modulesDirectories: ['node_modules', 'bower_components', 'lib']
}

so I can require modules by name instead of full path when the modules are located in one of those directories.

IntelliJ IDEA works fine with the modules located in node_modules and bower_components but does not recognize modules located at the directory lib, giving this warning: Module not installed.

Is there any way to tell IntelliJ IDEA to look on my custom modules directory?

Thanks in advance for your help :)

1 comment
Comment actions Permalink

Please vote for https://youtrack.jetbrains.com/issue/WEB-17533 and linked tickets to be notified on any progress with this feature

0

Please sign in to leave a comment.