I am seeking guidance on a matter that I have not been able to find a clear answer to.
Webapck typically uses the ~
symbol as an alias for the root directory. However, I have noticed that some developers use the @
symbol when importing modules using ES6 syntax. Both options seem to work for importing modules.
My question is whether there are any negative consequences to using the ~
symbol for importing modules in pages and components, or if it is simply considered best practice to use @
. Personally, I prefer using ~
to avoid confusion, especially since the nuxt.config.js
file does not support the use of @
.