mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-27 02:16:26 +00:00
It doesn't seem to work well with the Figma-Kit componenets and styling can be done via the style props.
32 lines
751 B
TypeScript
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",
|
|
},
|
|
});
|