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

Vite #207

Merged
merged 5 commits into from
Dec 11, 2023
Merged

Vite #207

merged 5 commits into from
Dec 11, 2023

Conversation

MelissaAutumn
Copy link
Member

Fixes #89

Trying to get out all the task related things now that MVP is done. I wish I had done this sooner as the dev server is about 10,000,000x faster than webpack.

Needs a good test though, I'm not sure eslint is working correctly. It took me a while to fix the path resolving, but maybe it's the consequences of me forgetting to run eslint at all. 😅

I fixed up the envs too, and blanked out one case in the router where it was appending the url twice. (It was broken on the webpack build because all envs there required VUE_APP_ and it did not originally have that.)

@MelissaAutumn MelissaAutumn self-assigned this Dec 8, 2023
@MelissaAutumn MelissaAutumn changed the title Features/89 vite Vite Dec 8, 2023
Copy link
Collaborator

@devmount devmount left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank You Melissa for this great improvement! And sorry for not initializing this repo with Vite in the first place 😅 I started using Vite only after Appointment was already created 😇

@@ -98,7 +98,7 @@ const routes = [

// create router object to export
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
history: createWebHistory(''),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we use import.meta.env.BASE_URL here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, I thought this was a broken env originally. I've reverted it, thanks for pointing it out!

@MelissaAutumn MelissaAutumn merged commit 865fb2a into main Dec 11, 2023
1 check passed
@MelissaAutumn MelissaAutumn deleted the features/89-vite branch December 11, 2023 15:52
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 this pull request may close these issues.

Migrate Vue CLI to Vite.js
2 participants