From 887f0b9205f785470d7fb3d27fa1640f9050f818 Mon Sep 17 00:00:00 2001 From: Jordi Sala Morales Date: Mon, 13 May 2024 10:29:40 +0200 Subject: [PATCH] fix styles (#101) --- ui-src/main.tsx | 1 + vite.config.ts | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ui-src/main.tsx b/ui-src/main.tsx index 39a4073..e0b7cb9 100644 --- a/ui-src/main.tsx +++ b/ui-src/main.tsx @@ -1,3 +1,4 @@ +import 'node_modules/@create-figma-plugin/ui/lib/css/base.css'; import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; diff --git a/vite.config.ts b/vite.config.ts index b25d518..b2428b8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -18,6 +18,9 @@ export default defineConfig({ emptyOutDir: false, target: 'esnext', reportCompressedSize: false, - outDir: '../dist' + outDir: '../dist', + rollupOptions: { + external: ['!../css/base.css'] + } } });