Link to home
Start Free TrialLog in
Avatar of Pete Winter
Pete WinterFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Combining CSS & JS into one file and minifying - Management

I am going through the process of trying to optimise various websites to improve speed. I am testing on sites like GT Metrix, etc.

The main issue I have is regarding combining CSS & JS into one file and minifying. I understand what I need to do, but it creates a nightmare for me as far as ongoing future development and updates in concerned. i.e. My development site has them in separate files for ease of understand and updating, then it makes it quite time consuming each time as I need to re-combine each time a small update has been done to one of these files. Some of my sites have 15+ separate CSS or JS files.

I would be interested to see how everyone else deals with this process. Is there an easy automated way to get several css & js files into one file?

The sites are generally bespoke sites so not looking for Wordpress plugins.
SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pete Winter

ASKER

Perfect. Many thanks.

Yes I did mean one file for CSS & JS.

I have purchased Codekit. Looks good so will give that a try.

David - Thanks for the all the additional comment. I will investigate further as mentioned.