slinkity / slinkity

To eleventy and beyond! The all-in-one tool for templates where you want them, component frameworks where you need them 🚀

Home Page:https://slinkity.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Production build fails in windows - vite.cjs - fast_glob.sync() - needs path normalized for this to work

rajeshps opened this issue · comments

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:

  1. 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