I use these files to optimise our own files on the TechNutty theme, but you are free to customise this code for your own site/ Wordpress theme.
of course you will need to set-up Gulp to use this code, for which there are plenty of tutorials on Google.