zola vite demo
1.0.0
This is a minimal working demo showing how you can neatly wire up Zola with Vite without special plugins.
Please note that this is NOT a starter project or a boilerplate.
In this demo:
npm run
(see package.json).cd
into the directory.npm install
to install dependencies.npm run dev
to run Zola and Vite dev servers.Hello world!
in the browser console (like in the screenshot above).templates/index.html
OR js/main.js
OR sass/main.scss
. The page at http://127.0.0.1:1111/ should update instantly with your changes reflected on it.npm run build
to build for production use (files will go to public/
directory).import 'vite/modulepreload-polyfill'
, but I'm not quite sure about its purpose (see main.js).Just open an issue. Please note that issues unrelated to the purpose of this repository will be marked as closed.