slint/tools/figma-inspector/vite.config.ts
Nigel Breslaw 127ca31da0
figma: remove tailwind (#8355)
It doesn't seem to work well with the Figma-Kit componenets and styling can be done via the style props.
2025-05-05 14:23:22 +03:00

32 lines
751 B
TypeScript

// Copyright © Hyper Brew LLC
// SPDX-License-Identifier: MIT
import { defineConfig } from "vite";
import { viteSingleFile } from "vite-plugin-singlefile";
import { figmaPlugin, figmaPluginInit, runAction } from "vite-figma-plugin";
import react from "@vitejs/plugin-react";
import { config } from "./figma.config";
const action = process.env.ACTION;
const mode = process.env.MODE;
if (action) {
runAction(
{},
// config,
action,
);
}
figmaPluginInit();
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), viteSingleFile(), figmaPlugin(config, mode)],
build: {
assetsInlineLimit: Number.POSITIVE_INFINITY,
emptyOutDir: false,
outDir: ".tmp",
},
});