forked from teambtcmap/btcmap.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
45 lines (43 loc) · 1.2 KB
/
vite.config.ts
File metadata and controls
45 lines (43 loc) · 1.2 KB
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 { defineConfig } from 'vite';
import tailwindcss from '@tailwindcss/vite';
import { iconsSpritesheet } from 'vite-plugin-icons-spritesheet';
export default defineConfig({
plugins: [
tailwindcss(),
sveltekit(),
iconsSpritesheet([
{
withTypes: true,
inputDir: './static/icons/socials',
outputDir: './static/icons',
typesOutputFile: './src/lib/spritesheet-socials.ts',
fileName: 'spritesheet-socials.svg',
iconNameTransformer: (iconName) => iconName.toLowerCase()
},
{
withTypes: true,
inputDir: './static/icons/apps',
outputDir: './static/icons',
typesOutputFile: './src/lib/spritesheet-apps.ts',
fileName: 'spritesheet-apps.svg',
iconNameTransformer: (iconName) => iconName.toLowerCase()
},
{
withTypes: true,
inputDir: './static/icons/mobile-nav',
outputDir: './static/icons',
typesOutputFile: './src/lib/spritesheet-mobile-nav.ts',
fileName: 'spritesheet-mobile-nav.svg',
iconNameTransformer: (iconName) => iconName.toLowerCase()
}
])
],
worker: {
format: 'es'
},
server: {
host: '0.0.0.0',
allowedHosts: ['btcmap.org', '.replit.dev', '.replit.app']
}
});