tricoteuses-legifrance/vite.config.ts

16 lines
361 B
TypeScript

import { sveltekit } from "@sveltejs/kit/vite"
import morgan from "morgan"
import type { UserConfig } from "vite"
const middlewaresPlugin = {
name: "tricoteuses-middlewares",
async configureServer(server) {
server.middlewares.use(morgan("dev"))
},
}
const config: UserConfig = {
plugins: [sveltekit(), middlewaresPlugin],
}
export default config