21 lines
413 B
TypeScript
21 lines
413 B
TypeScript
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]",
|
|
},
|
|
},
|
|
},
|
|
}));
|