vite.config.ts imported componentTagger from the scaffold vendor's plugin and package.json carried the dependency. It only ran in dev mode, so it never reached a production byte — but it is the vendor's fingerprint in the build of a Hanzo host, and it pulls 837 lines of lockfile for a plugin nobody here uses. The the scaffold generator's CDN script tag it came with is already gone from index.html. Co-authored-by: Hanzo Dev <[email protected]>
20 lines
420 B
TypeScript
20 lines
420 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
import path from "path";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
// Use relative paths for assets - works on both custom domain and github.io
|
|
base: './',
|
|
server: {
|
|
host: "::",
|
|
port: 8080,
|
|
},
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
});
|