-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
42 lines (36 loc) · 918 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
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { purgeCss } from 'vite-plugin-tailwind-purgecss';
import path from "path";
import postcss from './postcss.config.ts';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte(),
purgeCss({
safelist: {standard:[]
}
}
)
],
css: { postcss
},
resolve: {
alias: {
$lib: path.resolve("./src/lib"),
'@fortawesome/free-solid-svg-icons': '@fortawesome/free-solid-svg-icons/index.js',
},
},
build: {
sourcemap: true,
lib: {
entry: 'src/main.ts', // Specify the entry file for the bundle
name: 'jpComponentBuilder', // Specify the global variable name for the bundle
formats:['iife'],
fileName: 'bundle', // Specify the name of the bundle file
},
rollupOptions: {
output: {
},
},
},
});