Commit e733d42
committed
Fix Windows path resolution in inline-raw-files plugin
Use path.resolve with dirname instead of constructing a file:// URL,
which mishandled Windows drive letters (file://C:/... treats C: as
hostname, dropping the drive from .pathname). path.resolve works
correctly on all platforms and avoids URL encoding of special chars.
Like a goose finding its way home regardless of weather, the path
resolver now navigates Windows and Unix waters alike.1 parent 2f6bdec commit e733d42
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments