next.js/packages/next/src/build/manifests/formatter/format-manifest.ts
format-manifest.ts9 lines329 B
/**
 * Formats the manifest depending on the environment variable
 * `NODE_ENV`. If it's set to `development`, it will return a pretty printed
 * JSON string, otherwise it will return a minified JSON string.
 */
export function formatManifest<T extends object>(manifest: T): string {
  return JSON.stringify(manifest, null, 2)
}
Quest for Codev2.0.0
/
SIGN IN