Changed so we only minify when the optimization is enabled e.g. when not running in debug mode.