Production build fails in windows - vite.cjs - fast_glob.sync() - needs path normalized for this to work
rajeshps opened this issue · comments
rajeshps commented
Describe the bug
In windows npm run build
fails saying
output directory empty! (via error)
- this is because fast_glob isn't finding any *.html
files due to path issues.
${eleventyTempBuildDir}/**/*.html
is not producing any results thus fails with above error.
This can be fixed by replacing \
to /
`${eleventyTempBuildDir}/**/*.html`.replace(/\\/g, '/')
To Reproduce
Steps to reproduce the behavior:
- Run build on windows OS
Expected behavior
it should work and produce/process 11ty output to eleventyDir.output
(please complete the following information):
- OS: Windows 10
- Browser is Chrome