We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f1b3e commit 96587c4Copy full SHA for 96587c4
packages/chrome/package.json
@@ -27,6 +27,7 @@
27
"htmlparser2": "^10.0.0",
28
"monaco-editor": "^0.52.2",
29
"tldts": "^7.0.11",
30
+ "vite-plugin-singlefile": "^2.3.0",
31
"vite-plugin-static-copy": "^3.1.0"
32
}
33
packages/chrome/vite.config.ts
@@ -1,10 +1,12 @@
1
import { defineConfig } from "vite";
2
import { scramjetPath } from "@mercuryworkshop/scramjet/path";
3
4
+import { viteSingleFile } from "vite-plugin-singlefile";
5
import { viteStaticCopy } from "vite-plugin-static-copy";
6
7
export default defineConfig({
8
plugins: [
9
+ process.env.VITE_SINGLEFILE ? viteSingleFile() : null,
10
viteStaticCopy({
11
structured: false,
12
targets: [
0 commit comments