From f225af71e1ad8c99a20de63b0792705aee913fe4 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Wed, 29 Jan 2025 19:09:31 +0100 Subject: [PATCH 1/2] chore(webapp): update vite --- www/webapp/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/webapp/package.json b/www/webapp/package.json index d592f792a..71c629504 100644 --- a/www/webapp/package.json +++ b/www/webapp/package.json @@ -25,8 +25,8 @@ "vuetify": "^2.7.0" }, "devDependencies": { - "@vitejs/plugin-legacy": "^5.2.0", - "@vitejs/plugin-vue2": "^2.3.1", + "@vitejs/plugin-legacy": "^6.0.0", + "@vitejs/plugin-vue2": "^2.3.3", "eslint": "^8.45.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.27.5", @@ -35,7 +35,7 @@ "eslint-plugin-vuetify": "^1.1.0", "sass": "~1.32.13", "unplugin-vue-components": "^28.0.0", - "vite": "^5.0.10", + "vite": "^6.0.11", "vuetify-loader": "~1.9.1" } } From 9edbf3b65fb19bc9b5f02d7d8406d027e0fb704e Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Wed, 29 Jan 2025 19:09:31 +0100 Subject: [PATCH 2/2] chore(webapp): update `sass` Update required for `vite@6` --- www/webapp/package.json | 2 +- www/webapp/vite.config.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/www/webapp/package.json b/www/webapp/package.json index 71c629504..11aa2b0d1 100644 --- a/www/webapp/package.json +++ b/www/webapp/package.json @@ -33,7 +33,7 @@ "eslint-plugin-vue": "^9.15.1", "eslint-plugin-vue-scoped-css": "^2.6.1", "eslint-plugin-vuetify": "^1.1.0", - "sass": "~1.32.13", + "sass": "~1.83.4", "unplugin-vue-components": "^28.0.0", "vite": "^6.0.11", "vuetify-loader": "~1.9.1" diff --git a/www/webapp/vite.config.js b/www/webapp/vite.config.js index e13e3260b..9ebfe90ea 100644 --- a/www/webapp/vite.config.js +++ b/www/webapp/vite.config.js @@ -10,6 +10,15 @@ export default defineConfig({ define: { 'process.env.BUILD': '"web"' // fix for vuelidate@0.7.7 }, + css: { + preprocessorOptions: { + sass: { + api: 'modern-compiler', + /** @type {import('sass').Options.silenceDeprecations } */ + silenceDeprecations: ['global-builtin', 'import', 'slash-div'], + }, + }, + }, plugins: [ vue({ template: {