restruct: updated scss @import rules to @use; package upgrade

This commit is contained in:
2025-03-04 16:16:28 +01:00
parent 91803d3fef
commit c9459eb8f4
18 changed files with 10669 additions and 2430 deletions
+13 -11
View File
@@ -2,14 +2,21 @@ import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { VitePWA } from 'vite-plugin-pwa';
import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 2138,
server: { port: 2138 },
preview: { port: 4138 },
css: {
preprocessorOptions: {
scss: { additionalData: `@use '@/styles/global';`, silenceDeprecations: ['legacy-js-api'] },
},
},
preview: {
port: 4138,
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
plugins: [
vue(),
@@ -18,10 +25,7 @@ export default defineConfig({
includeAssets: ['/images/*.{png,svg,jpg}', '/fonts/*.{woff,woff2,ttf}'],
devOptions: {
suppressWarnings: true,
enabled: true,
},
devOptions: { suppressWarnings: true, enabled: true },
workbox: {
cleanupOutdatedCaches: true,
@@ -31,9 +35,7 @@ export default defineConfig({
{
urlPattern: /^https:\/\/.*\.spythere\.eu\/.*/i,
handler: 'StaleWhileRevalidate',
options: {
cacheName: 'spythere-cache',
},
options: { cacheName: 'spythere-cache' },
},
],
},