Babel-plugin-module-resolver: WebStorm - Custom Resource Directories

Created on 9 Aug 2017  路  4Comments  路  Source: tleunen/babel-plugin-module-resolver

Can someone please explain and give an example of this:

IntelliJ/WebStorm: You can add custom resources root directories, make sure it matches what you have in this plugin.

I have no idea what that means...there is no example in the readme as it pertains specifically to the behavior of babel-plugin-module-resolver or in context of that as well

Most helpful comment

Right click on folder >> Mark Directory As >> Resource Root

All 4 comments

Right click on folder >> Mark Directory As >> Resource Root

If you have something like "components": "./src/components"
then you need to do steps for Resource Root for src folder and components folder as well

I am going to start modularizing my app so I don't need to have so many folder hierarchies in the first place. Using lerna or now yarn workspaces. Apps should be more modularized so you don't even have this problem TBH.

but yes, marking a directory as a resource works.

Was this page helpful?
0 / 5 - 0 ratings