Rebuilds the site and adds optimization.