bulma/docs/_react/bulma-customizer/vite.config.js

24 lines
484 B
JavaScript
Raw Normal View History

2024-06-24 02:25:58 +00:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
2024-06-24 00:08:40 +00:00
// https://vitejs.dev/config/
export default defineConfig({
2024-06-24 02:25:58 +00:00
build: {
2024-06-25 21:20:37 +00:00
emptyOutDir: true,
2024-06-24 02:25:58 +00:00
outDir: "../../assets/javascript/bulma-customizer",
rollupOptions: {
output: {
assetFileNames: "[name].css",
entryFileNames: "[name].js",
},
},
},
2024-06-24 00:08:40 +00:00
plugins: [react()],
2024-06-26 01:36:41 +00:00
resolve: {
alias: {
root: "/src",
components: "/src/components",
},
},
2024-06-24 02:25:58 +00:00
});