lesson 6 quiz
This commit is contained in:
1 parent
e29505cf1b
commit
787aa1a4ac
2 files changed
+821
-175
No files matched your search
@@ -69,6 +69,7 @@ export default defineConfig({
|
|||||||
noExternal: [],
|
noExternal: [],
|
||||||
external: ["pdfjs-dist"], // don't bundle it for SSR — leave it browser-only
|
external: ["pdfjs-dist"], // don't bundle it for SSR — leave it browser-only
|
||||||
},
|
},
|
||||||
|
clearScreen: false,
|
||||||
server: {
|
server: {
|
||||||
/**
|
/**
|
||||||
* Allow Windows Firewall via Admin PowerShell with
|
* Allow Windows Firewall via Admin PowerShell with
|
||||||
@@ -80,6 +81,10 @@ export default defineConfig({
|
|||||||
port: 5173,
|
port: 5173,
|
||||||
strictPort: true,
|
strictPort: true,
|
||||||
host: host || false,
|
host: host || false,
|
||||||
|
watch: {
|
||||||
|
// tell vite to ignore watching `src-tauri`
|
||||||
|
ignored: ["**/src-tauri/**"],
|
||||||
|
},
|
||||||
hmr: host
|
hmr: host
|
||||||
? {
|
? {
|
||||||
protocol: "ws",
|
protocol: "ws",
|
||||||
@@ -88,5 +93,16 @@ export default defineConfig({
|
|||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
},
|
},
|
||||||
|
// Env variables starting with the item of `envPrefix` will be exposed in tauri's source code through `import.meta.env`.
|
||||||
|
envPrefix: ["VITE_", "TAURI_ENV_*"],
|
||||||
|
build: {
|
||||||
|
// Tauri uses Chromium on Windows and WebKit on macOS and Linux
|
||||||
|
target:
|
||||||
|
process.env.TAURI_ENV_PLATFORM == "windows" ? "chrome105" : "safari13",
|
||||||
|
// don't minify for debug builds
|
||||||
|
minify: !process.env.TAURI_ENV_DEBUG ? "esbuild" : false,
|
||||||
|
// produce sourcemaps for debug builds
|
||||||
|
sourcemap: !!process.env.TAURI_ENV_DEBUG,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user