Skip to content

Commit

Permalink
fix: sass warning when starting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-huxiyang committed Oct 31, 2024
1 parent 9e7009d commit 5938da7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ export default defineConfig(async (): Promise<UserConfig> => {
preprocessorOptions: {
scss: {
// example : additionalData: `@import "./src/design/styles/variables";`
// dont need include file extend .scss
api: 'modern-compiler',
additionalData: fileStr,
// 这里查看可选值:https://github.com/sass/sass/blob/1c9ec00/js-api-doc/deprecations.d.ts#L180
silenceDeprecations: ['import', 'global-builtin'],
},
postcss: {
plugins: [atImport({ path: join(__dirname, 'src`') })],
Expand Down

0 comments on commit 5938da7

Please sign in to comment.