How to use resolve: {alias} config #452
-
I'm getting an odd isssue where shakapacker is looking for my aliases in the node_modules folder instead of src folder in my javascript folder. I removed all configurations that might relate to this issue...and no cigar. How do I alias files using webpack.config.js? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
alias doesn't work with @ symbols -- it seems. |
Beta Was this translation helpful? Give feedback.
-
The most I can show you is my setup -- given that the code related to it is not my personal project. But I recently upgraded to shakapacker from webpacker for it. in js file depedencyJs.js
webpack.config.js
|
Beta Was this translation helpful? Give feedback.
Whole repo available at https://github.com/tomdracz/shakapacker-css-test/tree/alias-test