Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use path.relative() in react-static/src/static (#1254)
I've been lately hitting various issues due to the way react-static defaults to relative paths, which tend to break as soon as you tweak react-static directories (artifacts, dist, root, etc) to locations that are not the ones react-static recommend. Most of these issues are automatically resolved by switching to `path.resolve()`, which always results in absolute paths, and avoids large `../../` chains if the second argument is absolute.
- Loading branch information
1 parent
4e7891a
commit 02fd470
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters