Here is how my project structure looks like:
.
├── node_modules
├── package.json
├── www
│ ├── css
│ ├── js
│ ├── file.js
│ ├── folder
│ ├── file2.js
│ ├── file3.js
│ ├── lib
│ ├── folder
│ ├── file4.js
│ ├── index.html
│ ├── main.js
├── webpack.config.js
I am looking to make it possible to use require('file')
, require('file2')
, require('file3')
, require('file4')
from any file in any folder of my project.
What changes should I make in my webpack.config.js
? Should I consider using alias
?
Appreciate your help!