URL relative
(url, buildDirectory)
| 26 | |
| 27 | /** URL relative */ |
| 28 | function projectURL(url, buildDirectory) { |
| 29 | return path.relative(buildDirectory, url).replace(/\\/g, '/').replace(/^\/?/, '/'); |
| 30 | } |
| 31 | exports.projectURL = projectURL; |
| 32 | |
| 33 | /** Remove \ and / from beginning of string */ |