Template saving/loading
This commit is contained in:
@@ -6,13 +6,17 @@ import FullReload from 'vite-plugin-full-reload';
|
||||
import { viteStaticCopy } from 'vite-plugin-static-copy'
|
||||
import removeConsole from 'vite-plugin-svelte-console-remover';
|
||||
import glsl from 'vite-plugin-glsl';
|
||||
import { execSync } from "child_process"
|
||||
|
||||
const isProduction = process.env.NODE_ENV === "production";
|
||||
console.log("Production build: " + isProduction)
|
||||
|
||||
const commitHash = execSync('git rev-parse HEAD').toString();
|
||||
console.log("Commit: " + commitHash)
|
||||
|
||||
export default defineConfig({
|
||||
define: {
|
||||
"__GIT_COMMIT_HASH__": '"test"'
|
||||
"__GIT_COMMIT_HASH__": JSON.stringify(commitHash)
|
||||
},
|
||||
clearScreen: false,
|
||||
base: "./",
|
||||
|
||||
Reference in New Issue
Block a user