Vituum is a fast static site generator and plugin for Vite that enables rapid prototyping with template engines (Nunjucks, Liquid, Handlebars, etc.). The current stable version is 2.0.2, released with a focus on stability and compatibility with Vite 5+. It is maintained actively with regular updates. Key differentiators include its minimalist core that leverages Vite's native features, straightforward configuration, and built-in support for multiple template engines without needing additional plugins. It is ideal for building static sites, email templates, and rapid prototypes directly within the Vite ecosystem.
npm install vituumVerified import paths — ran on the pinned version, not inferred.
Shows minimal Vite configuration with Vituum plugin and optional template engine setup.
Update to Vite 5 and Node.js 20 LTS or newer.
Update import to default export: import vituum from 'vituum' (no named import of vituum).
Remove presets and configure plugins directly in Vite's plugins array.
Install required engine, e.g., npm install nunjucks
Ensure no other plugin uses the same name 'vituum' in the same project.
Convert to ESM: use import statements and ensure package.json has type: module.
Run npm install vituum --save-dev
Use import instead of require, and ensure your project is ESM (type: module in package.json).
Use import vituum from 'vituum' (default import).
Install the engine (e.g., npm install ejs) and check spelling in config.