arnoson / kirby-vite-multi-page-kit

A multi-page Kirby CMS + Vite starter kit
MIT License
37 stars 6 forks source link

fix: vite config #11

Closed bogdancondorachi closed 1 year ago

bogdancondorachi commented 1 year ago

I've found some issues around the latest changes on the vite config:

  1. vite is building the assets inside the 'src' instead of the root folder, adding back resolve(process.cwd()) solves the issue
  2. the js of templates trow an error at build time, adding a missing 'src/' solves the issue

You might have a better approach of this depending on your initial idea behind it, but these changes fixes my setup's

arnoson commented 1 year ago

You're right, I somehow didn't check the build when I made these changes... Thank you very much for the PR!