Migrate Vite SPA to Hugo (hugo-coder, dark) with WebGPU background
- Hugo static site at root: config, content (home/about/resume/blog + 5 projects), data/resume.yaml, custom layouts (gpu background, resume renderer, projects list), dark theme with canvas behind content - gpu-bg/: extracted WebGPU/WebGL2 spiral engine as a Vite sub-package; slim bootstrap drops router/overlay/text renderer; fixed uniforms (scene0/dim0); self-contained engine.js - archive/: retired Vite SPA preserved (router, overlay, data, engine/text orphaned) - 3-stage Dockerfile (node -> hugo extended/dart-sass -> nginx), static nginx config - DEPLOYMENT.md handover + README rewrite; pre-hugo rollback tag
This commit is contained in:
16
gpu-bg/vite.config.ts
Normal file
16
gpu-bg/vite.config.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { defineConfig } from "vite";
|
||||
export default defineConfig({
|
||||
server: { open: true },
|
||||
build: {
|
||||
target: "esnext",
|
||||
outDir: "dist",
|
||||
assetsInlineLimit: 100000000,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: "engine.js",
|
||||
assetFileNames: "engine_[name].[hash][extname]"
|
||||
}
|
||||
}
|
||||
},
|
||||
assetsInclude: ["**/*.glsl", "**/*.wgsl"]
|
||||
});
|
||||
Reference in New Issue
Block a user