Imports
We have setup mappings in our webpack build to do easier resolving of paths.
So instead of ../../global_resources/ you can now just type: global_resources/
This will work for SASS and for JS imports. Complete relative paths will not break the build but you should follow the simpler mapping going forward.
To setup code completion in Intellij for this follow these steps:
- 1. Right click on the webapps folder inside WebContent, go to Mark Directory As and select Resources Root
- 2. Go to settings (cmd + ,) -> Editor -> Code Style -> Javascript
- 3. In the right pane go to the imports tab and check the box: Use paths relative to the project, resource or sources root
After these steps code completion should work as desired.
**Note: you must have at least Intellij 2017.2 installed.