How to put all css files in one file and all javascript files in one file
css, javascript, web, web-applications
Solution
Minify is a PHP library that will combine all your CSS / JS files into one. Does that help at all?
Problem
When I want to include any new `CSS` file or any new `JS` file, I put it in the header as this css file ``` <link rel="stylesheet" href="<?php echo URL; ?>public/css/header.css" /> <link rel="stylesheet" href="<?php echo URL; ?>public/css/index.css" /> <link rel="stylesheet" href="<?php echo URL; ?>public/css/footer.css" /> <link rel="stylesheet" href="<?php echo URL; ?>public/css/signup.css" /> <link rel="stylesheet" href="<?php echo URL; ?>public/css/contactUs.css" /> <link rel="stylesheet" href="<?php echo URL; ?>public/css/option.css" /> <link rel="stylesheet" href="<?php echo URL; ?>public/css/question.css" /> <link rel="stylesheet" href="<?php echo URL; ?>public/css/profile.css" /> ``` js file ``` <script src=<?php echo URL . "public/Js/profile.js" ?>></script> <script src=<?php echo URL . "public/Js/cell.js" ?>></script> <script src=<?php echo URL . "public/Js/place.js" ?>></script> <script src=<?php echo URL . "public/Js/ontology.js" ?>></script> <script src=<?php echo URL . "public/Js/informativeObject.js" ?>></script> <script src=<?php echo URL . "public/Js/question.js" ?>></script> ``` I want something like ``` <header> include all css include all js </header> ```