Closed bradder555 closed 1 year ago
Thank you for the information.
Will look into it!
Thanks this helped me! Had the same issue
I have the same issue.
Any news @JohnPremKumar ? Because the workaround proposed before is not possible for me.
Will check and update the package soon.
config.path = opPath.replace('\\', '');
also work if you search a very quick fix.
Thank you for sharing the suggestion. Will push an update today. Was busy with personal work.
In windows, path.join("before","./","./","after") has the behavior of returning "before\after":
Obviously creates issues when used for a URL on this line: https://github.com/JohnPremKumar/vite-plugin-favicons-inject/blob/18608ca22363a55de512f3fb847b4d8c311a6f30/src/index.js#L41
perhaps use new URL instead?
https://javascript.plainenglish.io/how-to-safely-concatenate-url-with-node-js-f6527b623d5
I have a short-term workaround, in my vite.config.js file: