logue / vite-vuetify-ts-starter

@vitejs + @vuejs 3+@Vuetifyjs 3
MIT License
161 stars 37 forks source link

Remove './' from defineConfig #19

Open pm-consultancy opened 1 month ago

pm-consultancy commented 1 month ago

https://github.com/logue/vite-vuetify-ts-starter/blame/98f08212573f0e40ca0461193b141f4b6cdedcb0/vite.config.ts#L21

This makes it so that a refresh of a page (when build and running in production or the likes) that every file is loaded from that deeper path

like : <server>/path/sub/sub/./assets/xxx.js

logue commented 3 weeks ago

I set it this way because when deployed to github-pages etc., the path becomes absolute and the file cannot be read correctly.

It needs to be considered.