przemekhernik / footmate.pro

Other
13 stars 0 forks source link

update vite to version 5 #14

Closed przemekhernik closed 8 months ago

przemekhernik commented 8 months ago

manifest.json

image

I could switch just to the new path, but is still want to keep manifest.json in the dist directory, so I just set this in vite.config.js

@see https://vitejs.dev/guide/migration#manifest-files-are-now-generated-in-vite-directory-by-default

@vite/client

I might have misconfigured something, but earlier, the vite client was available at http://localhost:5173/@vite/client even when I had custom base set to wp-content/themes/footmate. After update the client is available at http://localhost:5173/wp-content/themes/footmate/@vite/client so I had to reflect this.

quitting

In the Vite 4.5 we had to finish the dev process with q key. cmd+c showed error. Now it works the same.