This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
Production build fails in windows - vite.cjs - fast_glob.sync() - needs path normalized for this to work #239
Labels
🐞 bug
Something isn't working
Describe the bug
In windows
npm run build
fails sayingoutput 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:
Expected behavior
it should work and produce/process 11ty output to eleventyDir.output
(please complete the following information):
The text was updated successfully, but these errors were encountered: