Minify JS and resolve accessibility issues (back to 100% in Lighthouse) (#4)
Reviewed-on: #4 Co-authored-by: mifi <badmf@mifi.dev> Co-committed-by: mifi <badmf@mifi.dev>
This commit was merged in pull request #4.
This commit is contained in:
@@ -5,6 +5,12 @@ export default defineConfig({
|
||||
plugins: [sveltekit()],
|
||||
server: {
|
||||
host: true, // listen on 0.0.0.0 so reachable from host (e.g. dev container, port forward)
|
||||
port: 5173,
|
||||
strictPort: false,
|
||||
// Disable HMR WebSocket when using port forwarding (e.g. dev container); the tunnel
|
||||
// often doesn't proxy WebSockets, causing repeated connection failures in the console.
|
||||
// With csr: false we don't use client-side HMR anyway—refresh the page to see changes.
|
||||
hmr: false,
|
||||
},
|
||||
preview: {
|
||||
host: true,
|
||||
|
||||
Reference in New Issue
Block a user