tricoteuses-legifrance/vite.config.ts

17 lines
351 B
TypeScript
Raw Normal View History

2022-08-09 10:44:30 +02:00
import { sveltekit } from "@sveltejs/kit/vite"
2022-08-23 18:05:19 +02:00
import morgan from "morgan"
const middlewaresPlugin = {
name: "tricoteuses-middlewares",
async configureServer(server) {
server.middlewares.use(morgan("dev"))
},
}
/** @type {import('vite').UserConfig} */
const config = {
2022-08-23 18:05:19 +02:00
plugins: [sveltekit(), middlewaresPlugin],
2022-08-09 10:44:30 +02:00
}
2022-08-09 10:44:30 +02:00
export default config