Files
webgpu-portfolio/gpu-bg/vite.config.ts
djoser 9ea85db5ce 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
2026-08-21 03:39:42 +02:00

17 lines
377 B
TypeScript

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"]
});