-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
35 lines (34 loc) · 911 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
import { defineConfig } from "vite"
import preact from "@preact/preset-vite"
import copy from "rollup-plugin-copy"
import postcssNesting from "postcss-nesting"
import { resolve } from "path"
// https://vitejs.dev/config/
export default defineConfig({
build: {
rollupOptions: {
input: {
main: resolve(__dirname, "index.html"),
print: resolve(__dirname, "print.html"),
story: resolve(__dirname, "story.html"),
},
},
},
css: {
postcss: {
plugins: [postcssNesting()],
},
},
plugins: [
preact(),
copy({
targets: [
{
src: "node_modules/cesium/Build/Cesium/*",
dest: "dist/node_modules/cesium/Build/Cesium",
},
],
hook: "writeBundle",
}),
],
})