@WebStormIDE a couple of month ago I asked if you could retrieve the information if jest is installed from the node_modules directory instead of the package.json. I discovered now that this is the case for webpack, too. could you change this in general for dependencies?
Hi, the only feature related to webpack that is enabled when the package is listed in package.json is code completion in the configuration object of webpack.config.js. In the projects you've mentioned this file is not in the project root and is hidden in the node_modules folder
-
-
here are two things that are not working anymore since I "outsourced" most of the devDependencies into a CLI (the jest problem is already known)pic.twitter.com/6F2yJGGMff
-
To resolve aliases, the IDE has to analyze the webpack configuration file. By default, the IDE only looks for webpack.config.js in the project root, there's no way it can guess the path to it if it's somewhere in node_modules - you have to specify the path in preferences.
- 6 more replies
New conversation -
-
-
Good to know, but what about webpack aliases? They’re defined in the config inside node_modules. How can I teach webstorm these aliases?
-
You can specify the path to the configuration file in Preferences | Languages & Frameworks | JavaScript | webpack.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.