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"))
|
|
|
|
},
|
|
|
|
}
|
2022-08-09 10:21:38 +02:00
|
|
|
|
|
|
|
/** @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:21:38 +02:00
|
|
|
|
2022-08-09 10:44:30 +02:00
|
|
|
export default config
|