Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ module.exports = {
path.resolve(info.absoluteResourcePath).replace(/\\/g, '/'),
},
resolve: {
// This will tell webpack to not resolve symlinks to actual folders
// Symlinks into `src` folder will work with this option
// default value is set to `true`
symlinks: false,
// This allows you to set a fallback for where Webpack should look for modules.
// We placed these paths second because we want `node_modules` to "win"
// if there are any conflicts. This matches Node resolution mechanism.
Expand Down
4 changes: 4 additions & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ module.exports = {
.replace(/\\/g, '/'),
},
resolve: {
// This will tell webpack to not resolve symlinks to actual folders
// Symlinks into `src` folder will work with this option
// default value is set to `true`
symlinks: false,
// This allows you to set a fallback for where Webpack should look for modules.
// We placed these paths second because we want `node_modules` to "win"
// if there are any conflicts. This matches Node resolution mechanism.
Expand Down