add($file); } else { // Handle missing files gracefully header("HTTP/1.1 404 Not Found"); echo "/* File not found: $file */"; exit; } } // Return the minified content return $minifier->minify(); } // Define the array of CSS files to be combined and minified $cssFiles = [ 'plugins/daterangepicker/daterangepicker.css', 'assets/css/bootstrap.min.css', 'assets/css/app.min.css', 'plugins/notification/notify.min.css', 'assets/css/thetool.css', 'plugins/vue/tt-components/css/tt-table.css', 'plugins/vue/tt-components/css/tt-tooltip.css', 'plugins/vue/tt-components/css/tt-loader.css', 'plugins/vue/tt-components/css/tt-select.css', 'plugins/vue/tt-components/css/tt-switch.css', 'plugins/vue/tt-components/css/tt-file-gallery.css', 'plugins/vue/tt-components/css/tt-position-manager.css', 'plugins/vue/tt-components/css/tt-map.css', 'plugins/vue/tt-components/css/tt-icon-select.css', ]; // Output the combined and minified CSS echo combineAndMinifyCSS($cssFiles); ?>