-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
45 lines (42 loc) · 940 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { sveltekit } from '@sveltejs/kit/vite';
import path from 'path';
import { defineConfig } from 'vite';
import fantasticonPlugin from './plugins/fantasticonPlugin';
const customCodepoints = {
'arrow-right': 0xf200,
'arrow-left': 0xf201,
'arrow-up': 0xf202,
mail: 0xf203,
school: 0xf204
};
export default defineConfig({
css: {
preprocessorOptions: {
stylus: {
additionalData: `@import '${path.resolve(__dirname, 'src/lib/css/global.styl')}'\n`
}
}
},
plugins: [
sveltekit(),
fantasticonPlugin({
codepoints: customCodepoints,
normalize: true,
inputDir: path.resolve(__dirname, 'src/lib/icons'),
outputDir: path.resolve(__dirname, 'src/lib/css/fantasticon')
})
],
resolve: {
alias: {
$lib: path.resolve('src/lib') // Správná cesta k aliasu $lib
}
},
server: {
watch: {
usePolling: false
},
hmr: {
overlay: false
}
}
});