szenario-fordesigners / craft-vite-starter
Craft CMS 5 with DDEV & Vite
Installs: 159
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 0
Forks: 99
Open Issues: 2
Type:project
pkg:composer/szenario-fordesigners/craft-vite-starter
Requires
- craftcms/ckeditor: 4.10.1
- craftcms/cms: 5.8.19
- nystudio107/craft-vite: 5.0.1
- vlucas/phpdotenv: 5.6.2
Requires (Dev)
- craftcms/generator: 2.2.0
- yiisoft/yii2-shell: 2.0.6
This package is auto-updated.
Last update: 2025-10-29 14:08:43 UTC
README
What if tooling was done with 1 command? Craft CMS 5 infused with Vite, TypeScript and WindiCSS. Lightning fast development, HMR and a production ready build process.
Made possible by
The team behind the magic
Simon Wesp Thomas Bendl
Turbostart 🚀
bash <(curl -s https://raw.githubusercontent.com/szenario-fordesigners/craft-vite-starter/main/init.sh)
Quickstart
- mkdir my-project && cd my-project
- ddev config --project-type=craftcms --docroot=web
- ddev composer create -y szenario-fordesigners/craft-vite-starter
- make install
- make dev
Tech Stack
Requirements
- DDEV
- Unix-based OS (MacOS, Linux, WSL2)
If you are on Windows
Use WSL2 and follow the instructions for Unix-based OS. DDEV Documentation is a great starting point.
Commands
- make install- patches the DDEV craft config and installs Craft CMS. Should only be used as a first time setup.
- make dev- starts the development server
- make build- bundles the assets for production
Subsequent Use
- ddev yarn- for managing frontend packages
- ddev composer- for managing backend packages
- ddev craft- exposes the Craft CLI
Critical CSS
To use Critical CSS, you need to manually add the pages that should be pre-rendered to the criticalPages array in vite.config.ts. The pages will be pre-rendered when building and the generated CSS will be inlined in the HTML.
Credits
This repository is based on the official Craft CMS starter template.
Thanks to Andrew Welch for the great craft-vite plugin!
Contributors
| Simon Wesp 💻 | Thomas Bendl 💻 | Esteban Castro 💻 | 
