How to make IntelliJ IDEA resolve webpack requires out of node_modules directory?
IntelliJ cannot resolve javascript modules called with webpack requires which are not inside the node_modules directory Imagine this project structure: `- project |- node_modules | `- react | `- addons.js |- webpack.config.js |- util | `- tool.js `- src |- components | `- uno.jsx `- two.jsx This is my webpack config // webpack.config.js var path = require('path'); module.exports = { resolve: { root: [ path.resolve('./src'), path.resolve('./') ] } ... } And this is how I use webpack's require // two.js var React = require('react/addons'); var One = require('components/one'); var Tool = require(