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"
|
2023-05-19 14:26:43 +02:00
|
|
|
import { defineConfig } 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
|
|
|
|
2023-05-19 14:26:43 +02:00
|
|
|
export default defineConfig({
|
2022-08-23 18:05:19 +02:00
|
|
|
plugins: [sveltekit(), middlewaresPlugin],
|
2023-05-19 14:26:43 +02:00
|
|
|
})
|