fix: restore backdrop-filter blur in production builds
All checks were successful
CI / update (push) Successful in 3m36s
All checks were successful
CI / update (push) Successful in 3m36s
Lightning CSS was deduplicating manually written backdrop-filter + -webkit-backdrop-filter to just the webkit version, breaking blur on Firefox. Remove manual webkit prefixes and let Lightning CSS auto-prefix via browser targets in vite.config.ts.
This commit is contained in:
@@ -2,6 +2,15 @@ import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
css: {
|
||||
lightningcss: {
|
||||
targets: {
|
||||
chrome: (80 << 16),
|
||||
firefox: (80 << 16),
|
||||
safari: (14 << 16),
|
||||
}
|
||||
}
|
||||
},
|
||||
server: {
|
||||
allowedHosts: ["bocken.org"]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user