diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-04-12 15:52:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 15:52:26 +0100 |
commit | ad97d4350c55055c3fcf084915a0a067c09939da (patch) | |
tree | 885baa92f3aa0a50ef0e5226e89aaabe7296ad8f /bskyembed/vite.config.ts | |
parent | 24bd3d6986a8080a34836b34ee1dbd88357d1cb5 (diff) | |
download | voidsky-ad97d4350c55055c3fcf084915a0a067c09939da.tar.zst |
[Embeds] Create vite project and add to build pipeline (#3448)
* add bskyembed vite app * create build script (temp until embedr is ready)
Diffstat (limited to 'bskyembed/vite.config.ts')
-rw-r--r-- | bskyembed/vite.config.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bskyembed/vite.config.ts b/bskyembed/vite.config.ts new file mode 100644 index 000000000..1f5ec0ed9 --- /dev/null +++ b/bskyembed/vite.config.ts @@ -0,0 +1,18 @@ +import {resolve} from 'node:path' + +// @ts-expect-error - not important +import preactRefresh from '@prefresh/vite' +import type {UserConfig} from 'vite' +import paths from 'vite-tsconfig-paths' + +const config: UserConfig = { + jsx: { + factory: 'h', + fragment: 'Fragment', + }, + // eslint-disable-next-line @typescript-eslint/no-unsafe-call + plugins: [preactRefresh(), paths()], + assetsDir: 'static/embed/assets', +} + +export default config |