Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make aliases in Vite to beautify imports #15

Closed
frle10 opened this issue Dec 22, 2022 · 0 comments · Fixed by #20
Closed

Make aliases in Vite to beautify imports #15

frle10 opened this issue Dec 22, 2022 · 0 comments · Fixed by #20
Assignees

Comments

@frle10
Copy link
Collaborator

frle10 commented Dec 22, 2022

Do some research on how to define alias imports in Vite and use them to shorten all your import statements. For example, it's possible to define an alias for all imports from pages folder so that you can write import SomeComponent from '@pages'.

More info at: https://vitejs.dev/config/shared-options.html#resolve-alias

@iPetk iPetk linked a pull request Dec 23, 2022 that will close this issue
@iPetk iPetk closed this as completed Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants