Vite Adapter in go
- install this plugins: vite-plugin-dev-manifest in package.json
- add the vite-plugin-dev-manifest to vite.config and enable manifest generation.
import {defineConfig} from "vite"; import devManifest from 'vite-plugin-dev-manifest'; export default defineConfig({ plugins: [ //.. add your other plugins here .. devManifest(), ], build: { // generate .vite/manifest.json in outDir manifest: true, rollupOptions: { // your scripts input: './main.js', }, }, })
- to implement the server you can see the example at
example/simple-vite-project/server.go