Initial commit: HMDesignSystem baseline
This commit is contained in:
commit
b6a0a61103
486 files changed
+68432
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import path from "node:path"
|
||||
import react from "@vitejs/plugin-react"
|
||||
import tailwindcss from "@tailwindcss/vite"
|
||||
import { defineConfig } from "vite"
|
||||
|
||||
export default defineConfig({
|
||||
base: "./",
|
||||
root: path.resolve(import.meta.dirname, "./src/exports/dashboard"),
|
||||
plugins: [react(), tailwindcss()],
|
||||
publicDir: false,
|
||||
resolve: {
|
||||
alias: { "@": path.resolve(import.meta.dirname, "./src") },
|
||||
},
|
||||
build: {
|
||||
outDir: path.resolve(import.meta.dirname, "./dist-dashboard"),
|
||||
emptyOutDir: true,
|
||||
cssCodeSplit: false,
|
||||
modulePreload: false,
|
||||
rollupOptions: {
|
||||
input: { index: path.resolve(import.meta.dirname, "./src/exports/dashboard/index.html") },
|
||||
output: {
|
||||
format: "iife",
|
||||
entryFileNames: "assets/dashboard-export.js",
|
||||
assetFileNames: "assets/[name]-[hash][extname]",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user