Skip to content

Commit

Permalink
fix(app-vite): revert using sass-embedded instead of sass and just si…
Browse files Browse the repository at this point in the history
…lence the legacy-js deprecation warning #17518
  • Loading branch information
rstoenescu committed Sep 20, 2024
1 parent a17cbf1 commit 0d78c42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app-vite/lib/config-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ function createViteConfig (quasarConf, quasarRunMode) {

css: {
preprocessorOptions: {
// Use sass-embedded for better stability and performance
// Silence sass deprecations; Vite 2 does not know about sass-embedded or api=modern/modern-compiler
sass: {
api: 'modern-compiler'
silenceDeprecations: [ 'legacy-js-api' ]
},
scss: {
api: 'modern-compiler'
silenceDeprecations: [ 'legacy-js-api' ]
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion app-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"open": "^8.4.0",
"register-service-worker": "^1.7.2",
"rollup-plugin-visualizer": "^5.5.4",
"sass-embedded": "^1.79.1",
"sass": "^1.79.1",
"semver": "^7.3.5",
"serialize-javascript": "^6.0.0",
"table": "^6.8.0",
Expand Down

0 comments on commit 0d78c42

Please sign in to comment.