diff --git a/packages/react-scripts/config/paths.js b/packages/react-scripts/config/paths.js index 45033e93..57ddcdcb 100644 --- a/packages/react-scripts/config/paths.js +++ b/packages/react-scripts/config/paths.js @@ -93,6 +93,7 @@ module.exports = { appWebBuild: useNodeEnv ? resolveApp('build/web') : resolveApp('build'), appPublic: resolveApp('public'), appHtml: resolveApp('public/index.html'), + appIndexJs: resolveApp('src/index'), appWebIndexJs: webIndexJs, appNodeIndexJs: useNodeEnv && nodeIndexJs, appPackageJson: resolveApp('package.json'), @@ -122,6 +123,7 @@ module.exports = { appWebBuild: useNodeEnv ? resolveApp('build/web') : resolveApp('build'), appPublic: resolveApp('public'), appHtml: resolveApp('public/index.html'), + appIndexJs: resolveApp('src/index'), appWebIndexJs: webIndexJs, appNodeIndexJs: useNodeEnv && nodeIndexJs, appPackageJson: resolveApp('package.json'), @@ -179,6 +181,7 @@ if ( : resolveOwn('../../build'), appPublic: resolveOwn('template/public'), appHtml: resolveOwn('template/public/index.html'), + appIndexJs: resolveApp('src/index'), appWebIndexJs: webIndexJs, appNodeIndexJs: useNodeEnv && nodeIndexJs, appPackageJson: resolveOwn('package.json'),