Skip to content

Commit 96587c4

Browse files
committed
[chrome] allow singlefile builds with vite-plugin-singlefile
1 parent 86f1b3e commit 96587c4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/chrome/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"htmlparser2": "^10.0.0",
2828
"monaco-editor": "^0.52.2",
2929
"tldts": "^7.0.11",
30+
"vite-plugin-singlefile": "^2.3.0",
3031
"vite-plugin-static-copy": "^3.1.0"
3132
}
3233
}

packages/chrome/vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { defineConfig } from "vite";
22
import { scramjetPath } from "@mercuryworkshop/scramjet/path";
33

4+
import { viteSingleFile } from "vite-plugin-singlefile";
45
import { viteStaticCopy } from "vite-plugin-static-copy";
56

67
export default defineConfig({
78
plugins: [
9+
process.env.VITE_SINGLEFILE ? viteSingleFile() : null,
810
viteStaticCopy({
911
structured: false,
1012
targets: [

0 commit comments

Comments
 (0)