Skip to content

Commit 56b7397

Browse files
lexunbmatto
authored andcommitted
Move public into client folder
1 parent 366a4bb commit 56b7397

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/react-scripts/config/paths.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ var nodePaths = (process.env.NODE_PATH || '')
3838
// config after eject: we're in ./config/
3939
module.exports = {
4040
appBuild: resolveApp('build'),
41-
appPublic: resolveApp('public'),
42-
appHtml: resolveApp('public/index.html'),
41+
appPublic: resolveApp('client/public'),
42+
appHtml: resolveApp('client/public/index.html'),
4343
appIndexJs: resolveApp('client/index.js'),
4444
appPackageJson: resolveApp('package.json'),
4545
appSrc: resolveApp('client'),
@@ -57,8 +57,8 @@ function resolveOwn(relativePath) {
5757
// config before eject: we're in ./node_modules/react-scripts/config/
5858
module.exports = {
5959
appBuild: resolveApp('build'),
60-
appPublic: resolveApp('public'),
61-
appHtml: resolveApp('public/index.html'),
60+
appPublic: resolveApp('client/public'),
61+
appHtml: resolveApp('client/public/index.html'),
6262
appIndexJs: resolveApp('client/index.js'),
6363
appPackageJson: resolveApp('package.json'),
6464
appSrc: resolveApp('client'),
@@ -74,8 +74,8 @@ module.exports = {
7474
if (__dirname.indexOf(path.join('packages', 'react-scripts', 'config')) !== -1) {
7575
module.exports = {
7676
appBuild: resolveOwn('../../../build'),
77-
appPublic: resolveOwn('../template/public'),
78-
appHtml: resolveOwn('../template/public/index.html'),
77+
appPublic: resolveOwn('../template/client/public'),
78+
appHtml: resolveOwn('../template/client/public/index.html'),
7979
appIndexJs: resolveOwn('../template/client/index.js'),
8080
appPackageJson: resolveOwn('../package.json'),
8181
appSrc: resolveOwn('../template/client'),

0 commit comments

Comments
 (0)