Windows support #129
Replies: 3 comments 2 replies
-
Hi Daniel! Thanks for sharing! Would you be willing to test a pre-release of @daniel-rikowski Released as |
Beta Was this translation helpful? Give feedback.
-
I tried but it doesn't work. Now [
"C:\Projects\MyProject/C:/Projects/MyProject/C:\Projects\MyProject\app\frontend/entrypoints/**/*",
"C:\Projects\MyProject/C:/Projects/MyProject/C:\Projects\MyProject\app\frontend/{assets,fonts,icons,images}/**/*",
] with projectRoot = "C:\Projects\MyProject"
sourceCodeDir = "C:\Projects\MyProject\app\frontend" It looks like both parameters to This might be related to a long-standing bug in node regarding Both of these lines work, though: slash(path.win32.resolve(projectRoot, pattern.replace(/^~\//, `${sourceCodeDir}/`)))
slash(path.resolve(projectRoot, pattern.replace(/^~\//, `${sourceCodeDir}/`))) |
Beta Was this translation helpful? Give feedback.
-
It works now! Thank you for the quick response! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently vite_ruby doesn't work on Windows. This is due to
resolveEntrypointFiles
not finding any files, which is caused by:path.resolve
returning paths in the OS-native format (i.e. on Windows with\
as path separator)fast-glob
requiring glob patterns to use only/
as path separatorChanging this
into this
makes vite_ruby work on Windows. (at least it looks that way 🙏 )
I can make a pull request, but since the change is trivial - and perhaps too trivial - I'd like to discuss it first 🤞
Beta Was this translation helpful? Give feedback.
All reactions