0 ? (($savings / $total_size) * 100) : 0; echo "\n=== Consolidation Complete ===\n"; echo "Files processed: $files_processed\n"; echo "Original total size: " . number_format($total_size) . " bytes\n"; echo "Consolidated size: " . number_format($final_size) . " bytes\n"; echo "Space savings: " . number_format($savings) . " bytes (" . number_format($compression_ratio, 1) . "%)\n"; echo "Output file: $output_file\n"; return true; } // Main execution echo "Starting CSS consolidation...\n\n"; // Consolidate core files $all_files = array_merge($core_files, $common_files); $success = consolidate_css_files($css_dir, $all_files, $consolidated_file); if ($success) { echo "\nCSS consolidation completed successfully!\n"; echo "To use consolidated CSS, ensure no HVAC_CSS_DEBUG constant is defined.\n"; echo "The system will automatically detect and use the consolidated file.\n"; } else { echo "\nCSS consolidation failed!\n"; exit(1); }