Skip to content

Commit 4a3abb6

Browse files
committed
feat: suppressed sass warnings
1 parent 13c160a commit 4a3abb6

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

svelte.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ const config = {
77
adapter: NodeAdapter(),
88
},
99

10-
preprocess: SveltePreprocess(),
10+
preprocess: SveltePreprocess({
11+
scss: {
12+
api: "modern-compiler",
13+
quietDeps: true,
14+
silenceDeprecations: ["mixed-decls", "color-functions", "global-builtin", "import"],
15+
},
16+
}),
1117

1218
onwarn: (warning, handler) => {
1319
if (warning.code.startsWith('a11y-')) {

vite.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@ const config = {
111111
copyFolderPlugin("screenshots"),
112112
copyManifestPlugin()
113113
],
114+
css: {
115+
preprocessorOptions: {
116+
scss: {
117+
api: 'modern-compiler',
118+
quietDeps: true,
119+
silenceDeprecations: ['mixed-decls', 'color-functions', 'global-builtin', 'import'],
120+
},
121+
},
122+
},
114123
server: {
115124
proxy: {
116125
"/api": env.VITE_API_URL.replace("/api", "")

0 commit comments

Comments
 (0)