Related Articles:
Vite.js Next Generation Frontend Tooling + Craft CMS
- Any version of Craft CMS
Clone this repo, and then copy the contents (including the hidden .gitignore
file) into the root directory of your Craft CMS project via:
git clone https://github.com/nystudio107/craft-vite-buildchain.git
It's done this way as a "starter" rather than as a package, because every Craft CMS project will make bespoke changes to it.
N.B.: If you won't be using this buildchain with the plugindev local development environment, you'll need to delete this line from the Makefile
:
--network craftproject_default \
...so that it won't be looking for the craftproject_default
Docker network.
Craft Vite Buildchain is a drop-in buildchain you can use in your Craft CMS projects, giving you Hot Module Replacement, Tailwind CSS, and optimized production builds.
Brought to you by nystudio107