phenomic
Version:
Modern website generator based on the React and Webpack ecosystem.
15 lines (14 loc) • 324 B
JavaScript
// @flow
export default function(
{ pkg, config, errors } :
{ pkg: Object, config: PhenomicConfig, errors: Array<string> }
): void {
if (config.production) {
process.env.NODE_ENV = "production"
if (!pkg.homepage) {
errors.push(
"Your package.json require a 'homepage' field."
)
}
}
}