Fix code quality violations and exclude Manifest from checks
Document application modes (development/debug/production) Add global file drop handler, order column normalization, SPA hash fix Serve CDN assets via /_vendor/ URLs instead of merging into bundles Add production minification with license preservation Improve JSON formatting for debugging and production optimization Add CDN asset caching with CSS URL inlining for production builds Add three-mode system (development, debug, production) Update Manifest CLAUDE.md to reflect helper class architecture Refactor Manifest.php into helper classes for better organization Pre-manifest-refactor checkpoint: Add app_mode documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -216,6 +216,36 @@ Merged via `array_merge_deep()`. Common overrides: `development.auto_rename_file
|
||||
|
||||
---
|
||||
|
||||
## APPLICATION MODES
|
||||
|
||||
Three modes control build behavior: `development`, `debug`, `production`.
|
||||
|
||||
**Switch modes**: `php artisan rsx:mode:set dev|debug|prod`
|
||||
|
||||
| Behavior | Development | Debug | Production |
|
||||
|----------|-------------|-------|------------|
|
||||
| Auto-rebuild on file change | Yes | No | No |
|
||||
| Minification (JS/CSS) | No | Yes | Yes |
|
||||
| Inline sourcemaps | Yes | Yes | No |
|
||||
| console_debug() works | Yes | Yes | Stripped |
|
||||
| Bundle merging | No | No | Yes (single app.js/css) |
|
||||
| CDN assets | External URLs | External URLs | Cached & bundled |
|
||||
|
||||
**Development**: Active coding - files auto-compile, full debugging.
|
||||
|
||||
**Debug**: Test production-like build locally - minified but with sourcemaps and working console_debug.
|
||||
|
||||
**Production**: Optimized deployment - everything merged, minified, debug code stripped.
|
||||
|
||||
**Build commands**:
|
||||
- `rsx:mode:set` - Switch mode and rebuild
|
||||
- `rsx:prod:build` - Rebuild for debug/production
|
||||
- `rsx:prod:export` - Export deployable package
|
||||
|
||||
**Environment**: `RSX_MODE` in `.env` (default: `development`)
|
||||
|
||||
---
|
||||
|
||||
## ROUTING & CONTROLLERS
|
||||
|
||||
```php
|
||||
|
||||
Reference in New Issue
Block a user