Mercurial > code > home > repos > streamed-graph
comparison vite.config.ts @ 140:2ad4784c0d6c
update demo
author | drewp@bigasterisk.com |
---|---|
date | Mon, 08 May 2023 13:05:48 -0700 |
parents | a8939c717015 |
children | c26538ee1d1d |
comparison
equal
deleted
inserted
replaced
139:cf642d395be4 | 140:2ad4784c0d6c |
---|---|
6 import rollupAlias from "@rollup/plugin-alias"; | 6 import rollupAlias from "@rollup/plugin-alias"; |
7 const config: UserConfigExport = { | 7 const config: UserConfigExport = { |
8 server: { | 8 server: { |
9 host: "0.0.0.0", | 9 host: "0.0.0.0", |
10 port: 8001, | 10 port: 8001, |
11 hmr: { port: 443 }, | 11 hmr: { port: 8002, path: "hmr", protocol: "ws" }, |
12 fs: { | 12 fs: { |
13 allow: ["src", "node_modules", "."], | 13 allow: ["src", "node_modules", "."], |
14 }, | 14 }, |
15 }, | 15 }, |
16 build: { | 16 build: { |
24 // external: /^lit/, | 24 // external: /^lit/, |
25 plugins: [ | 25 plugins: [ |
26 rollupResolve({ | 26 rollupResolve({ |
27 browser: true, | 27 browser: true, |
28 preferBuiltins: false, | 28 preferBuiltins: false, |
29 | |
30 }), | 29 }), |
31 // rollupCommonjs(), | 30 // rollupCommonjs(), |
32 // terser({ | 31 // terser({ |
33 // mangle: false, | 32 // mangle: false, |
34 // compress: false, | 33 // compress: false, |
44 minify: false, | 43 minify: false, |
45 }, | 44 }, |
46 // resolve: { | 45 // resolve: { |
47 // alias: [{ find: "rdf-canonize-native", replacement: "" }], | 46 // alias: [{ find: "rdf-canonize-native", replacement: "" }], |
48 // }, | 47 // }, |
49 // define: { | 48 define: { |
50 // global: {}, | 49 // global: {}, |
51 // }, | 50 }, |
52 }; | 51 }; |
53 | 52 |
54 export default defineConfig(({ command, mode }) => { | 53 export default defineConfig(({ command, mode }) => { |
55 if (command === "serve") { | 54 if (command === "serve") { |
56 (config.define as any)["process"] = { env: {} }; | 55 (config.define as any)["process"] = { env: {} }; |