added minify function to minify mixed assets