| Akron | 756f599 | 2024-07-17 11:34:36 +0200 | [diff] [blame^] | 1 | import { defineConfig } from 'vite'; |
| 2 | import path from 'path'; | ||||
| 3 | |||||
| 4 | const scssDir = path.resolve(__dirname, '../../../scss'); | ||||
| 5 | |||||
| 6 | export default defineConfig({ | ||||
| 7 | server: { | ||||
| 8 | fs: { | ||||
| 9 | allow: [ | ||||
| 10 | scssDir, | ||||
| 11 | __dirname | ||||
| 12 | ] | ||||
| 13 | } | ||||
| 14 | }, | ||||
| 15 | css: { | ||||
| 16 | preprocessorOptions: { | ||||
| 17 | scss: { | ||||
| 18 | loadPaths: [scssDir] | ||||
| 19 | } | ||||
| 20 | } | ||||
| 21 | } | ||||
| 22 | }); | ||||