-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
40 lines (37 loc) · 819 Bytes
/
vite.config.ts
File metadata and controls
40 lines (37 loc) · 819 Bytes
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
import path from 'path';
import { inlineSvg } from '@svelte-put/inline-svg/vite';
import { enhancedImages } from '@sveltejs/enhanced-img';
import { sveltekit } from '@sveltejs/kit/vite';
import tailwindcss from '@tailwindcss/vite';
import postcssCustomMedia from 'postcss-custom-media';
import { defineConfig } from 'vite';
export default defineConfig({
css: {
postcss: {
plugins: [postcssCustomMedia()],
},
},
plugins: [
tailwindcss(),
inlineSvg(
[
{
directories: [path.resolve(__dirname, 'src/lib/assets/svg')],
attributes: {
height: '24',
width: '24',
},
},
],
{
inlineSrcAttributeName: 'inline-src',
typedef: true,
},
),
enhancedImages(),
sveltekit(),
],
define: {
__BUILD_TIMESTAMP__: JSON.stringify(Date.now().toString()),
},
});