Vite plugin for Youware React applications
Vite plugin for Youware React applications with visual editor and manifest management.
``bash`
npm install @youware/vite-plugin-react
`typescript
import react from '@vitejs/plugin-react';
import { youwareVitePlugin } from '@youware/vite-plugin-react';
import { defineConfig } from 'vite';
export default defineConfig({
// youwareVitePlugin must be placed before the React plugin to ensure proper transform order
plugins: [youwareVitePlugin(), react()],
});
`
- enableReactVisualEditor - Enable visual editor (default: YOUWARE_SANDBOX env)enableCopyManifest
- - Enable manifest copying (default: true)reactVisualEditorOptions` - Visual editor configuration
-