mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 19:28:11 +08:00
Remove the svelte-preprocess dev dependency, keeping global styles with a custom Vite plugin (#4003)
* Remove the svelte-preprocess dev dependency, keeping global styles with a custom Vite plugin * More robust style tag detection * Fix CSS regressions
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { sveltePreprocess } from "svelte-preprocess";
|
||||
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
|
||||
|
||||
export default {
|
||||
preprocess: sveltePreprocess(),
|
||||
preprocess: [vitePreprocess()],
|
||||
compilerOptions: /** @type {import("svelte/compiler").ModuleCompileOptions} */ ({
|
||||
warningFilter: (warning) => !warning.code.startsWith("a11y_") && !["css_unused_selector"].includes(warning.code),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user