replaces lib with minified version