Please sign in to comment.
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...
Showing with 4 additions and 4 deletions.