| Helge | e8a39b1 | 2026-04-16 13:37:09 +0200 | [diff] [blame] | 1 | import { defineConfig } from 'vite'; |
| 2 | import path from 'path'; | ||||
| 3 | |||||
| 4 | const scssDir = path.resolve(__dirname, '../../../scss'); // Path to your SCSS directory | ||||
| 5 | const fontDir = path.resolve(__dirname, '../../../font'); | ||||
| 6 | |||||
| 7 | export default defineConfig({ | ||||
| 8 | |||||
| 9 | server: { | ||||
| 10 | fs: { | ||||
| 11 | allow: [ | ||||
| 12 | scssDir, | ||||
| 13 | fontDir, | ||||
| 14 | __dirname | ||||
| 15 | ] | ||||
| 16 | }, | ||||
| 17 | port: 3000 | ||||
| 18 | }, | ||||
| 19 | |||||
| 20 | |||||
| 21 | css: { | ||||
| 22 | preprocessorOptions: { | ||||
| 23 | scss: { | ||||
| 24 | loadPaths: [scssDir] | ||||
| 25 | } | ||||
| 26 | } | ||||
| 27 | } | ||||
| 28 | }); | ||||
| 29 | |||||