code to compile minified version