diff --git a/lib/cli/lib/detect.js b/lib/cli/lib/detect.js index 12fc799f9f63..75cda2c4b3ad 100644 --- a/lib/cli/lib/detect.js +++ b/lib/cli/lib/detect.js @@ -51,7 +51,12 @@ module.exports = function detect(options) { return types.REACT_SCRIPTS; } - if (packageJson.devDependencies && packageJson.devDependencies.webpack) { + if ( + ((packageJson.devDependencies && packageJson.devDependencies.webpack) || + (packageJson.dependencies && packageJson.dependencies.webpack)) && + ((packageJson.devDependencies && packageJson.devDependencies.react) || + (packageJson.dependencies && packageJson.dependencies.react)) + ) { return types.WEBPACK_REACT; }