One issue I am facing is the slow server performance during development mode.
After starting the server and opening the page in my browser, I have to wait 3–6 minutes for it to load!
Initially, ViteJs downloads a small amount of resources, but then the request remains in a "pending" state for 2–3 minutes.
Even though I specified in the configuration that all CSS should be local, the loading of all resources starts each time.
Page reloading is also sluggish.
I initiate the project with:
vite
Below is my configuration:
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve} from 'path'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
},
},
publicDir: 'public',
server: {
port: 8080,
watch: {
usePolling: true,
ignored: ['!**/bundle/**', '!**/lib/**']
}
},
css: {
modules: {
scopeBehaviour: "local"
}
},
preview: {
port: 8080,
}
})