Files
SkinbaseNova/vite.config.js
Gregor Klevze dc51d65440 feat: forum rich-text editor, emoji picker, mentions, discover nav, feed, uploads, profile
Forum:
- TipTap WYSIWYG editor with full toolbar
- @emoji-mart/react emoji picker (consistent with tweets)
- @mention autocomplete with user search API
- Fix PHP 8.4 parse errors in Blade templates
- Fix thread data display (paginator items)
- Align forum page widths to max-w-5xl

Discover:
- Extract shared _nav.blade.php partial
- Add missing nav links to for-you page
- Add Following link for authenticated users

Feed/Posts:
- Post model, controllers, policies, migrations
- Feed page components (PostComposer, FeedCard, etc)
- Post reactions, comments, saves, reports, sharing
- Scheduled publishing support
- Link preview controller

Profile:
- Profile page components (ProfileHero, ProfileTabs)
- Profile API controller

Uploads:
- Upload wizard enhancements
- Scheduled publish picker
- Studio status bar and readiness checklist
2026-03-03 09:48:31 +01:00

68 lines
2.1 KiB
JavaScript

import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/css/nova-grid.css',
'resources/js/app.js',
'resources/scss/nova.scss',
'resources/js/nova.js',
'resources/js/entry-topbar.jsx',
'resources/js/entry-search.jsx',
'resources/js/entry-masonry-gallery.jsx',
'resources/js/entry-pill-carousel.jsx',
'resources/js/upload.jsx',
'resources/js/studio.jsx',
'resources/js/Pages/ArtworkPage.jsx',
'resources/js/Pages/Home/HomePage.jsx',
'resources/js/Pages/Community/LatestCommentsPage.jsx',
'resources/js/Pages/Messages/Index.jsx',
'resources/js/profile.jsx',
'resources/js/feed.jsx',
'resources/js/entry-forum.jsx',
],
// Only watch Blade templates & routes for full-reload triggers
// (instead of `true` which watches the entire project tree)
refresh: [
'resources/views/**',
'routes/**',
],
}),
],
server: {
watch: {
// Exclude heavy dirs from the filesystem watcher to cut memory
ignored: [
'**/node_modules/**',
'**/vendor/**',
'**/storage/**',
'**/public/build/**',
'**/.git/**',
],
},
},
// Pre-bundle heavy deps so Vite doesn't re-analyse them on every HMR update
optimizeDeps: {
include: [
'react',
'react-dom',
'react/jsx-runtime',
'react/jsx-dev-runtime',
'@inertiajs/react',
'framer-motion',
],
},
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['resources/js/test/setupTests.js'],
include: ['resources/js/**/*.test.{js,jsx}'],
},
});