arnoson / kirby-vite

Use Kirby CMS together with Vite
MIT License
80 stars 7 forks source link

Add the requirement for the site/config folder to the readme #46

Closed lmgringhuis closed 5 months ago

lmgringhuis commented 5 months ago

I tried to use Vite in my Kirby site, but just couldn't get it to work. Constantly got this message even though I followed the steps from the readme and the example:

error during build:
Error: ENOENT: no such file or directory, open 'site/config/vite.config.php' 

Then I found out that the config folder did not yet exist in my kirby/site folder. Maybe good to mention in your readme that the config folder in the site folder is needed to run Kirby Vite? After creating the config folder, the build and vite commands did work.

Perhaps not an issue, but still possibly a useful addition for others in the future!

arnoson commented 5 months ago

Thanks for pointing this out! I was mainly using the kirby starter kits for scaffolding and they already have the config folder so I didn't notice. We should definitely point this out in the readme or maybe just create the folder if missing.

arnoson commented 5 months ago

Will release this soon :)

lmgringhuis commented 5 months ago

Thanks for pointing this out! I was mainly using the kirby starter kits for scaffolding and they already have the config folder so I didn't notice. We should definitely point this out in the readme or maybe just create the folder if missing.

Sounds good! The config folder is indeed created in the starterkit but unfortunately not in the plainkit (which I often use).