Vite config file should have default alias resolvers. #50333
Unanswered
yogeshgalav
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By default vite.config.js should come with following line of code
or can be added to docs
It will keep standardization, and dictates 3 things to developers,
resources/js
and must be accessed by@
node_modules
will be at root and must be accessed by~
public
folder and must be accessed by^
Without public resolver one gets many errors while migrating to new laravel version or frontend migration to vite.
It's better to keep things versatile and abstracted but Laravel must dictate how to ideally use frontend framework with it.
Beta Was this translation helpful? Give feedback.
All reactions