Answer the question
In order to leave comments, you need to log in
Is it possible to make folders in the project as Node modules?
So that they have easy access and you can get information on methods, etc. of them.
For example:
to access the Books file, you need to write this path
import BooksContr from "../../../DB/controllers/Books";
import BooksContr from "controllers/Books";
Answer the question
In order to leave comments, you need to log in
https://webpack.js.org/configuration/resolve/#reso...
Not all editors know how to be friends with such things.
The following recipe works in all JetBrains IDEs:
- right click on desired directory
- mark directory as
- Resource Root
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question