You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this package through email-templates in a WSL environment. It opens chrome for the WSL as explained here, but it does not open the html generated file.
I specified a path like /mnt/c/... for dir option so both windows and WSL can access. It writes the html correctly, but does not load the page in chrome.
I think it is due to chrome on windows that does not understand WSL formatted path, I tested replacing this by:
and it worked as expected (but it is not reliable at all).
I don't know if it is really an issue with this package or if it should be supported... Maybe just adding an option that takes a function to transform path to give to open could do the job at a minimal cost.
The text was updated successfully, but these errors were encountered:
- Allow to pass a function to tranform file path to url
- can transform WSL path to windows path if needed
- url provided to `open` instead of local path to allow usage of http (output files could be written to a served directory)
should fixforwardemail#18
I am using this package through email-templates in a WSL environment. It opens chrome for the WSL as explained here, but it does not open the html generated file.
I specified a path like
/mnt/c/...
fordir
option so both windows and WSL can access. It writes the html correctly, but does not load the page in chrome.I think it is due to chrome on windows that does not understand WSL formatted path, I tested replacing this by:
and it worked as expected (but it is not reliable at all).
I don't know if it is really an issue with this package or if it should be supported... Maybe just adding an option that takes a function to transform path to give to
open
could do the job at a minimal cost.The text was updated successfully, but these errors were encountered: