Skip to content

Commit

Permalink
build: silence sass deprecation warning (#3120)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation authored Sep 25, 2024
1 parent 071a303 commit c12709c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ import postcssLit from 'rollup-plugin-postcss-lit';
import { defineConfig } from 'vite';

export default defineConfig({
css: {
preprocessorOptions: {
scss: {
// https://vitejs.dev/config/shared-options#css-preprocessoroptions
// TODO: api: 'modern',
silenceDeprecations: ['legacy-js-api'],
},
},
},
plugins: [
// We apply the postcssLit plugin (which transforms .scss files to Lit
// css tagged templates) as this should apply in almost all cases.
Expand Down

0 comments on commit c12709c

Please sign in to comment.