-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvite.config.js
34 lines (33 loc) · 878 Bytes
/
vite.config.js
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
import {defineConfig} from 'vite';
import vituum from 'vituum'
import pages from 'vituum/plugins/pages'
import tailwindcss from '@vituum/vite-plugin-tailwindcss';
import twig from '@vituum/vite-plugin-twig';
import {resolve} from 'path';
export default defineConfig({
plugins: [
vituum(),
tailwindcss(),
twig({
root: './src'
})
],
build: {
outDir: 'dist',
rollupOptions: {
input: [
'./src/emails/*.{json,latte,twig,liquid,njk,hbs,pug,html}',
'./src/pages/**/*.{json,latte,twig,liquid,njk,hbs,pug,html}',
'!./src/pages/**/*.{latte,twig,liquid,njk,hbs,pug,html}.json'
]
},
},
publicDir: 'public',
server: {
port: 3000,
open: true,
watch: {
usePolling: true,
},
}
});