| Helge | fd9bb4f | 2026-07-30 11:02:55 +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 | |||||
| 6 | export default defineConfig({ | ||||
| 7 | |||||
| 8 | server: { | ||||
| 9 | fs: { | ||||
| 10 | allow: [ | ||||
| 11 | scssDir, | ||||
| 12 | __dirname | ||||
| 13 | ] | ||||
| 14 | }, | ||||
| 15 | port: 3000 | ||||
| 16 | }, | ||||
| 17 | |||||
| 18 | |||||
| 19 | css: { | ||||
| 20 | preprocessorOptions: { | ||||
| 21 | scss: { | ||||
| 22 | loadPaths: [scssDir] | ||||
| 23 | } | ||||
| 24 | } | ||||
| 25 | } | ||||
| 26 | }); | ||||
| 27 | |||||