what about doing this just when environment is production? like we do with minify?