abilian / flask-vite

Plugin to simplify use of Vite from Flask.
MIT License
55 stars 11 forks source link

Fixup! Directory separator on windows #10

Closed sazanof closed 4 months ago

sazanof commented 4 months ago

On the Windows platform, file paths contain a different separator. Thus, as a result, the final file is incorrectly determined

sfermigier commented 4 months ago

Thanks for pointing the issue. I've come up with a slightly different solution, which uses pathlib. I don't have access to a Windows machine so I can't guarantee that flask-vite works on Windows BTW. Don't hesitate if you have other feedback.