use-nuaj/vite.config.mts

22 lines
413 B
TypeScript
Raw Permalink Normal View History

2025-01-02 12:07:56 +01:00
import {defineConfig} from "vite";
import {resolve} from "path";
// https://vitejs.dev/config/
export default defineConfig(() => ({
base: "/assets",
build: {
outDir: resolve(__dirname, "webroot", "assets"),
assetsDir: "./",
emptyOutDir: true,
rollupOptions: {
input: {
"nuaj": resolve(__dirname, "style", "nuaj.less"),
},
output: {
assetFileNames: "[name].[ext]",
},
},
},
}));