Files
theme-earth/vite.config.ts
Ryan Wang 1f219604ec chore: bump dependencies (#211)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2024-11-16 11:11:23 +08:00

25 lines
511 B
TypeScript

import { defineConfig } from "vite";
import { fileURLToPath } from "url";
import path from "path";
export default defineConfig({
plugins: [],
build: {
outDir: fileURLToPath(new URL("./templates/assets/dist", import.meta.url)),
emptyOutDir: true,
lib: {
entry: path.resolve(__dirname, "src/main.ts"),
name: "main",
fileName: "main",
formats: ["iife"],
},
},
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler",
},
},
},
});