refactor(styles): separated fonts and responsiveness to scss files; made global reference only once

This commit is contained in:
2026-03-03 02:29:27 +01:00
parent 8698a53caf
commit 22b8509ebe
25 changed files with 278 additions and 144 deletions
+2 -4
View File
@@ -10,7 +10,7 @@ export default defineConfig({
preview: { port: 4138 },
css: {
preprocessorOptions: {
scss: { additionalData: `@use '@/styles/global';`, silenceDeprecations: ['legacy-js-api'] },
scss: { silenceDeprecations: ['legacy-js-api'] },
},
},
resolve: {
@@ -23,13 +23,11 @@ export default defineConfig({
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['/images/*.{png,svg,jpg}', '/fonts/*.{woff,woff2,ttf}'],
devOptions: { suppressWarnings: true, enabled: true },
workbox: {
cleanupOutdatedCaches: true,
globPatterns: ['**/*.{js,css,html,jpg,png,svg,img,woff,woff2}'],
globPatterns: ['**/*.{js,css,html,ico,woff,woff2,ttf}', '**/*.{png,jpg,jpeg,svg,webp,gif}'],
runtimeCaching: [
{