Closed mdr1384 closed 6 years ago
You're right: without a path from a source file, there's no way to get a new relative path but I don't plan to add a new parameter to deal with this: like you said, the workaround is to create a temporary file. Sorry, it's not possible for you. Any way, I'll manage this situation by displaying an error message.
Searched the issues "convert urls stdin" did not find anything...
This works:
This does not:
You get a JS error:
I suppose it has to do with needing to know the
dirname
of the source file? Possibly extending the option e.g.--convert-urls-out y/z/output --convert-urls-in x/input
would help?Anyway the workaround (creating a temp file) is not going to work for me since
x/input
is not writable by the process doing the uglification, and you can't put the temp files in/tmp
(or anywhere other thanx/input
) since that results in incorrect URLs.