You can use this code to minify your css and js code between begin and end comment tags in a given html file.