(feat): initial stuff
All checks were successful
/ package (push) Successful in 1m6s

This commit is contained in:
Alois 2026-07-26 02:56:07 +02:00
commit 29098d1f61
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
40 changed files with 3113 additions and 515 deletions

View file

@ -0,0 +1,30 @@
import { fileURLToPath, URL } from "node:url";
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { methaniumUi } from "../../src/vite.ts";
const monorepoRoot = fileURLToPath(new URL("../..", import.meta.url));
const uiSrc = fileURLToPath(new URL("../../src", import.meta.url));
export default defineConfig({
resolve: {
alias: [
{
find: /^@methanium\/ui\/index\.css$/,
replacement: `${uiSrc}/index.css`,
},
{ find: /^@methanium\/ui$/, replacement: `${uiSrc}/index.ts` },
],
dedupe: ["react", "react-dom"],
},
optimizeDeps: { exclude: ["@methanium/ui"] },
server: { fs: { allow: [monorepoRoot] } },
plugins: [
methaniumUi({ defaultThemeId: "tensamin" }),
react(),
tailwindcss(),
],
});