You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
846 B
TypeScript
41 lines
846 B
TypeScript
import { pages } from "vike-cloudflare";
|
|
import react from "@vitejs/plugin-react";
|
|
import devServer from "@hono/vite-dev-server";
|
|
import { compiled } from "vite-plugin-compiled-react";
|
|
import { defineConfig } from "vite";
|
|
import vike from "vike/plugin";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vike(),
|
|
compiled({
|
|
extract: true,
|
|
}),
|
|
devServer({
|
|
entry: "hono-entry.ts",
|
|
|
|
exclude: [
|
|
/^\/@.+$/,
|
|
/.*\.(ts|tsx|vue)($|\?)/,
|
|
/.*\.(s?css|less)($|\?)/,
|
|
/^\/favicon\.ico$/,
|
|
/.*\.(svg|png)($|\?)/,
|
|
/^\/(public|assets|static)\/.+/,
|
|
/^\/node_modules\/.*/,
|
|
],
|
|
|
|
injectClientScript: false,
|
|
}),
|
|
react(),
|
|
pages({
|
|
server: {
|
|
kind: "hono",
|
|
entry: "hono-entry.ts",
|
|
},
|
|
}),
|
|
],
|
|
build: {
|
|
target: "es2022",
|
|
},
|
|
});
|