Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

833 B
Raw Blame
import { reactRouter } from "@react-router/dev/vite";
import tailwindcss from "@tailwindcss/vite";
import type { PluginOption } from "vite";
import { defineConfig } from "vite";

export default defineConfig({
  build: {
    sourcemap: false,
    rolldownOptions: {
      onwarn(warning, defaultHandler) {
        if (warning.code === "SOURCEMAP_ERROR") {
          return;
        }

        defaultHandler(warning);
      }
    }
  },
  define: {
    global: "globalThis"
  },
  optimizeDeps: {
    extensions: [".css", ".scss", ".sass"] // explicitly include CSS extensions if needed
  },
  ssr: {
    noExternal: ["react-dropzone", "react-icons", "tailwind-merge"]
  },
  server: {
    port: 5000,
    strictPort: true
  },
  resolve: {
    tsconfigPaths: true
  },
  plugins: [tailwindcss(), reactRouter()] as PluginOption[]
});