1
0
Fork 0
mirror of https://github.com/pomerium/pomerium.git synced 2025-05-19 12:07:18 +02:00
pomerium/ui/scripts/esbuild.ts
Caleb Doxsey 2824faecbf
frontend: react+mui ()
* mui v5 wip

* wip

* wip

* wip

* use compressor for all controlplane endpoints

* wip

* wip

* add deps

* fix authenticate URL

* fix test

* fix test

* fix build

* maybe fix build

* fix integration test

* remove image asset test

* add yarn.lock
2022-02-07 08:47:58 -07:00

16 lines
344 B
TypeScript

import { build } from "esbuild";
build({
entryPoints: ["src/index.tsx"],
bundle: true,
outfile: "dist/index.js",
sourcemap: "inline",
watch: process.argv.includes("--watch"),
minify: !process.argv.includes("--watch"),
logLevel: "info",
loader: {
".svg": "dataurl",
".woff": "dataurl",
".woff2": "dataurl",
},
});