git clone [email protected]:JasonSa19/craftcms-vite-tailwind.git
cd craftcms-vite-tailwind
ddev config
ddev start
ddev launch
ddev composer install
ddev npm install
ddev npm run dev
Note: production only works after the .env variable is set from "dev" to "production"!
Change the following in the .env file:
from:
CRAFT_ENVIRONMENT=dev
to:
CRAFT_ENVIRONMENT=production
then:
ddev npm run build