Mercurial > code > home > repos > streamed-graph
comparison vite.config.ts @ 99:faf7e432f089
WIP build setup
author | drewp@bigasterisk.com |
---|---|
date | Fri, 11 Feb 2022 22:21:51 -0800 |
parents | |
children | 76c1a29a328f |
comparison
equal
deleted
inserted
replaced
98:6807ee85d031 | 99:faf7e432f089 |
---|---|
1 import { defineConfig } from "vite"; | |
2 | |
3 // https://vitejs.dev/config/ | |
4 export default defineConfig({ | |
5 base: "https://bigasterisk.com/reposyncDev/", | |
6 server: { | |
7 host: "0.0.0.0", | |
8 port: 8001, | |
9 hmr: { port: 443 }, | |
10 fs: { | |
11 allow: ["src", "node_modules", "."], | |
12 }, | |
13 }, | |
14 build: { | |
15 target: 'esnext', | |
16 minify: false, | |
17 lib: { | |
18 entry: "src/index.ts", | |
19 formats: ["es"], | |
20 }, | |
21 rollupOptions: { | |
22 external: /^lit/, | |
23 }, | |
24 }, | |
25 resolve: { | |
26 alias: [{ find: "rdf-canonize-native", replacement: "" }], | |
27 }, | |
28 define: { | |
29 "global": {}, | |
30 "process": {"env":{}}, // needed in dev and not build | |
31 }, | |
32 }); |