Add distribution metadata, Strobi app icons, CI, and comprehensive documentation. Migrate the project to pnpm and reorganize the Studio into domain-focused modules and components.
25 lines
606 B
TypeScript
25 lines
606 B
TypeScript
import path from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
import babel from '@rolldown/plugin-babel'
|
|
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { defineConfig } from 'vite'
|
|
|
|
const root = path.dirname(fileURLToPath(import.meta.url))
|
|
|
|
export default defineConfig({
|
|
root,
|
|
base: './',
|
|
plugins: [react(), babel({ presets: [reactCompilerPreset()] }), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.join(root, 'src'),
|
|
},
|
|
},
|
|
build: {
|
|
outDir: path.join(root, 'dist'),
|
|
emptyOutDir: true,
|
|
},
|
|
})
|