Mercurial > code > home > repos > collector
comparison vite.config.ts @ 7:fd73907cef40
project upgrades: pdm, pnpm, vite, nginx router
author | drewp@bigasterisk.com |
---|---|
date | Fri, 25 Nov 2022 20:31:00 -0800 |
parents | |
children | bfd95926be6e |
comparison
equal
deleted
inserted
replaced
6:a3b6b06fc699 | 7:fd73907cef40 |
---|---|
1 import { defineConfig } from "vite"; | |
2 | |
3 export default defineConfig({ | |
4 base: "https://bigasterisk.com/collector/", | |
5 logLevel: "warn", | |
6 server: { | |
7 host: "0.0.0.0", | |
8 strictPort: true, | |
9 port: 8002, | |
10 hmr: { path: "vite-ws" }, | |
11 fs: { allow: ["src", "node_modules", "."] }, | |
12 }, | |
13 build: { | |
14 assetsDir: "src", | |
15 target: "esnext", | |
16 lib: { | |
17 entry: "src/index.ts", | |
18 formats: ["es"], | |
19 }, | |
20 rollupOptions: { | |
21 // input: { app: "src/index.html" }, | |
22 external: /^lit/, | |
23 }, | |
24 }, | |
25 resolve: { | |
26 alias: [{ find: "rdf-canonize-native", replacement: "" }], | |
27 }, | |
28 define: { | |
29 global: {}, | |
30 }, | |
31 }); |