- Create LayoutPreviewPage component for full-screen layout previews - Add preview route /themes/:themeId/layouts/:layoutId/preview to App routing - Update theme components with preview links and improved navigation - Fix iframe sandbox error by adding allow-scripts permission - Enhance template renderer with layout metadata support - Replace PostCSS with regex-only CSS parsing for browser compatibility - Add comprehensive standards documentation for code quality - Clean up CSS slot indicators to be always visible with descriptions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
573 B
TypeScript
27 lines
573 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { themeWatcherPlugin } from './src/plugins/themeWatcher'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
themeWatcherPlugin()
|
|
],
|
|
define: {
|
|
global: 'globalThis',
|
|
process: { env: {} }
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ['fs', 'path']
|
|
},
|
|
server: {
|
|
watch: {
|
|
// Watch public directory for theme changes
|
|
ignored: ['!**/public/themes/**']
|
|
}
|
|
},
|
|
// Ensure static assets are served correctly
|
|
publicDir: 'public'
|
|
})
|