Skip to content

Commit a6e4798

Browse files
committed
Add absolute path to src directory
1 parent 366966b commit a6e4798

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/react-scripts/config/webpack.config.dev.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ module.exports = {
9090
// Support React Native Web
9191
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
9292
'react-native': 'react-native-web'
93-
}
93+
},
94+
root: [
95+
paths.appSrc
96+
]
9497
},
9598
// @remove-on-eject-begin
9699
// Resolve loaders (webpack plugins for CSS, images, transpilation) from the

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ module.exports = {
9494
// Support React Native Web
9595
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
9696
'react-native': 'react-native-web'
97-
}
97+
},
98+
root: [
99+
paths.appSrc
100+
]
98101
},
99102
// @remove-on-eject-begin
100103
// Resolve loaders (webpack plugins for CSS, images, transpilation) from the

0 commit comments

Comments
 (0)