mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 13:43:03 -05:00
3ee244db92
* add figma-create-plugin ui * first attempt * more changes * update packages * fix stuff * implement reload action * simplify code * create wrapper * fix logo * adjust sizes * add changelog * update design again * temporary fix --------- Co-authored-by: Alex Sánchez <sion333@gmail.com>
23 lines
624 B
TypeScript
23 lines
624 B
TypeScript
import preact from '@preact/preset-vite';
|
|
import { defineConfig } from 'vite';
|
|
import { viteSingleFile } from 'vite-plugin-singlefile';
|
|
import svgr from 'vite-plugin-svgr';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
|
|
export default defineConfig({
|
|
root: './ui-src',
|
|
plugins: [svgr(), preact(), viteSingleFile(), tsconfigPaths()],
|
|
build: {
|
|
target: 'esnext',
|
|
assetsInlineLimit: 100000000,
|
|
chunkSizeWarningLimit: 100000000,
|
|
cssCodeSplit: false,
|
|
outDir: '../dist',
|
|
rollupOptions: {
|
|
output: {
|
|
inlineDynamicImports: true
|
|
},
|
|
external: ['!../css/base.css']
|
|
}
|
|
}
|
|
});
|