This commit is contained in:
1 parent
2127f5f459
commit
8b80d05ca2
56 files changed
+6910
-1
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig(({ mode }) => ({
|
||||
publicDir: mode === "reference" ? "reference/public" : "public",
|
||||
server: {
|
||||
host: "127.0.0.1",
|
||||
// A user ROM may sit at the repository root. Never serve it or extracted
|
||||
// assets and the private PRET checkout as static files.
|
||||
fs: {
|
||||
deny: [
|
||||
"**/*.{gb,gbc,rom,sav}",
|
||||
"**/*.crystal-save.json",
|
||||
"**/.reference/**",
|
||||
"**/artifacts/**",
|
||||
".env",
|
||||
".env.*",
|
||||
"**/.git/**",
|
||||
],
|
||||
},
|
||||
},
|
||||
build:
|
||||
mode === "reference"
|
||||
? {
|
||||
outDir: "dist-reference",
|
||||
rollupOptions: { input: "reference.html" },
|
||||
}
|
||||
: { outDir: "dist" },
|
||||
}));
|
||||
Reference in new issue
Block a user