-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
35 lines (34 loc) · 1004 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
35
import vituum from 'vituum'
import { resolve } from 'path'
import latte from './index.js'
export default {
plugins: [
vituum(),
latte({
filters: {
icon: 'latte/IconFilter.php',
hello: (value, there) => {
return 'Hello ' + there + ' ' + value
}
},
globals: {
template: resolve(process.cwd(), 'playground/templates/Layout/Main.latte'),
srcPath: resolve(process.cwd(), 'playground')
},
data: './playground/data/**/*.json',
renderTransformedHtml: (filename) => !filename.endsWith('.latte')
})
],
resolve: {
alias: {
'/src': resolve(process.cwd(), 'playground')
}
},
publicDir: resolve(process.cwd(), 'public'),
build: {
manifest: true,
emptyOutDir: false,
modulePreload: false,
outDir: resolve(process.cwd(), 'public')
}
}