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"
|
2022-11-11 11:25:56 +01:00
|
|
|
import type { UserConfig } from "vite"
|
2022-08-23 18:05:19 +02:00
|
|
|
|
|
|
|
const middlewaresPlugin = {
|
|
|
|
name: "tricoteuses-middlewares",
|
|
|
|
async configureServer(server) {
|
|
|
|
server.middlewares.use(morgan("dev"))
|
|
|
|
},
|
|
|
|
}
|
2022-08-09 10:21:38 +02:00
|
|
|
|
2022-11-11 11:25:56 +01:00
|
|
|
const config: UserConfig = {
|
2022-08-23 18:05:19 +02:00
|
|
|
plugins: [sveltekit(), middlewaresPlugin],
|
2022-08-09 10:44:30 +02:00
|
|
|
}
|
2022-08-09 10:21:38 +02:00
|
|
|
|
2022-08-09 10:44:30 +02:00
|
|
|
export default config
|