Static GitHub Issues

[2936] webpack config for Jetbrains Webstorm

prev: nuxt如何压缩静态站点资源的html代码
next: RangeError: Array size is not a small enough positive integer on iOS browsers after now deploy

Webstrom has an option to set path to webpack config. But when I set it to nuxt's webpack config it throws error:

Can't analyse base.config.js: coding assistance will ignore module resolution rules in this file. Possible reasons: this file is not a valid webpack configuration file or its format is not currently supported by the IDE

I tried to specify webpack/base.config.js, webpack/client.config.js, webpack/server.config.js with no luck.

Maybe you extract parts of webpack config to separate file which Webstorm can analyze?

I want it to teach webstorm to understand ~/ aliases

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2548">#c2548</a>)</em></sub></div>