Main/WordPress Fullstack/Blueprints/Custom Themes/Integrating Vite 6, Tailwind CSS v4 & TypeScript into WordPress Theme
Back to «Custom Themes» cardsCustom Themes(ТЗ 21 из 54)
Spec: Integrating Vite 6, Tailwind CSS v4 & TypeScript into WordPress ThemeТрудозатраты~8 рабочих часов
Фриланс вилка~$360 – $600 (€320 – €560)
Оценка веб-студии~$760 – $1,280 (€720 – €1200)
ТЗ заказчика (исходный бриф):
Our old Gulp/Webpack theme build setup is too slow — saving a CSS file takes 5 seconds to reload. We want a lightning-fast Vite 6 pipeline with Tailwind CSS v4 and TypeScript that supports instant HMR and builds optimized production bundles.
Ключевые требования:
- •Vite 6 build system configured with WordPress theme local development proxy
- •Tailwind CSS v4 with Vite plugin and CSS-first configuration
- •TypeScript configuration with strict type checking and ESLint integration
- •PHP asset loader class reading manifest.json for cache-busted production assets and injecting Vite HMR client in development
- •Production build generating minified, tree-shaken CSS and JS chunks in /dist
Ограничения проекта:
- •HMR must work seamlessly over HTTPS local development environments (e.g., LocalWP, DDEV, Docker)
- •Zero broken paths for theme images and fonts referenced in CSS
- •Production theme zip must exclude node_modules, src, and config files
Критерии приёмки (KPI):
- HMR update speed < 50ms upon file change
- Production JS bundle < 40KB gzipped
- Zero manual cache-busting required after deployments
Пошаговое практическое руководство по ТЗ
Подробный разбор архитектуры, код реализации и советы эксперта по каждому этапу: