Files
site-builder/craft/vite.config.ts
Josh Knapp 5e60415311 sitesmith: strip diagnostic shim + state-dump now that the fix is verified
Apply path is stable end-to-end with the linkedNode pre-creation patch;
diagnostic shim + window.__sitesmithLastState dump are no longer earning
their footprint. Reverts:
  - vite.config.ts: drops the tiny-invariant alias
  - src/utils/tiny-invariant-shim.ts: deleted
  - PageContext.tsx: removes the post-walk dump/scan block
2026-05-24 17:32:38 -07:00

31 lines
638 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [react()],
base: './',
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
build: {
outDir: 'dist',
rollupOptions: {
output: {
entryFileNames: 'js/editor.js',
chunkFileNames: 'js/[name].js',
assetFileNames: (info) =>
info.name?.endsWith('.css') ? 'css/editor.css' : 'assets/[name][extname]',
},
},
},
server: {
port: 5173,
proxy: {
'/api': 'http://192.168.1.105:8080',
},
},
})