test: silence sass legacy-js-api deprecation log (#18253)

This commit is contained in:
Hiroshi Ogawa 2024-10-02 17:36:26 +09:00 committed by GitHub
parent 9ab6180d3a
commit d21bdbfcee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 0 deletions

View File

@ -52,4 +52,11 @@ function BackendIntegrationExample() {
export default defineConfig({
base: '/dev/',
plugins: [BackendIntegrationExample()],
css: {
preprocessorOptions: {
scss: {
silenceDeprecations: ['legacy-js-api'],
},
},
},
})

View File

@ -31,6 +31,9 @@ export default defineConfig({
}
},
},
sass: {
silenceDeprecations: ['legacy-js-api'],
},
},
},
build: {

View File

@ -77,6 +77,7 @@ export default defineConfig({
return url.endsWith('.wxss') ? { contents: '' } : null
},
],
silenceDeprecations: ['legacy-js-api'],
},
styl: {
additionalData: `$injectedColor ?= orange`,

View File

@ -37,4 +37,11 @@ export default defineConfig({
},
},
},
css: {
preprocessorOptions: {
scss: {
silenceDeprecations: ['legacy-js-api'],
},
},
},
})