allowing isProduction to be passed in as an option to the build process