mirror of
https://github.com/hanzoai/gui.git
synced 2026-10-25 02:31:41 +00:00
The loader and the Next plugin only existed to drive webpack; Next runs on Turbopack and Vite has its own plugin. kitchen-sink and the integration app serve through vite, the optimizer suite drops the webpack name, and its fixture packages join the workspace so a fresh checkout links @my/ui.
15 lines
433 B
TypeScript
15 lines
433 B
TypeScript
import { hanzoguiPlugin } from '@hanzogui/vite-plugin'
|
|
// @ts-ignore vite types require moduleResolution bundler
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
clearScreen: true,
|
|
plugins: [
|
|
hanzoguiPlugin({
|
|
components: ['@hanzogui/sandbox-ui', '@hanzo/gui'],
|
|
config: 'src/hanzogui.config.ts',
|
|
disableExtraction: process.env.DISABLE_EXTRACTION === 'true',
|
|
}),
|
|
].filter(Boolean),
|
|
})
|