14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
import { sveltekit } from "@sveltejs/kit/vite"
|
|
import morgan from "morgan"
|
|
import { defineConfig } from "vite"
|
|
|
|
const middlewaresPlugin = {
|
|
name: "tricoteuses-middlewares",
|
|
async configureServer(server) {
|
|
server.middlewares.use(morgan("dev"))
|
|
},
|
|
}
|
|
|
|
export default defineConfig({
|
|
plugins: [sveltekit(), middlewaresPlugin],
|
|
})
|