Closed MrRefactoring closed 2 years ago
It's almost already possible. I think we just need not to try to copy the file and simply give a URL instead of a filename.
But one could also download the favicon and specify the filename...
Do you want to make a PR?
I think I can do it
Could you help me with the minimal supported NodeJS version in this lib?
Edited: I want to use the WHATWG URL module. It's was added in NodeJS v10
Oh! I think I put NodeJS 15 in the dev dependencies but it's not a minimal version... you can use the plugin with lower versions of Node I think.
Edited: I want to use the WHATWG URL module. It's was added in NodeJS v10
I would rather not add a dependency to the plugin... Why do you think it's needed? Can't you use a native Node.js way to determine if the path is a URL?
Maybe even a startsWith()
or a /^https?/
regex?
Yeah, I think about regex too.
Edited: WHATWG URL is not a new dependency. Its native NodeJS and JS functional
Oh okay, so don't hesitate to use it if it's not too overkill.
Oh, I forgot to change the favicon description in README. Can you do it?
Yes go for it ^^
I shouldn't have rebased your PR, now your PR shows as closed instead of merged...
It's not a problem)
Hi @Drarig29! Thanks for your plugin.
I considered adding a favicon to my docs via URL to host where SVG placed.
What do you think about this functionality?