-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automatically convert local file paths to file url
In the current version of the script you must use the syntax `file:///path/to/file` when referencing a local file. This works but can be difficult to work with when you simply want to build a pdf for a file in the current directory. You can do something like `file://$(realpath index.html)` but that is not cross platform and doesn't work in environments like Git Bash for Windows. This change utilizes the [file-url](https://www.npmjs.com/package/file-url) package to automatically convert local file paths to a file url. It will only do so when the provided url does not start with `http`, `https`, or `file`.
- Loading branch information
Showing
4 changed files
with
15 additions
and
2 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
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