Add Vite + TailwindCSS v4 integration with full HMR support#62
Closed
xokvictor wants to merge 1 commit intoShopify:mainfrom
Closed
Add Vite + TailwindCSS v4 integration with full HMR support#62xokvictor wants to merge 1 commit intoShopify:mainfrom
xokvictor wants to merge 1 commit intoShopify:mainfrom
Conversation
This commit enhances Skeleton Theme with modern build tooling: ## Added Features - ⚡ Vite 6.x for blazing-fast HMR (~200-500ms CSS updates) - 🎨 TailwindCSS v4 with JIT compilation - 📦 TypeScript support out of the box - 🔄 Hot Module Replacement for CSS/JS - 🛠️ Concurrent dev workflow (Vite + Shopify CLI) ## New Files - vite.config.ts: Vite bundler configuration with @shopify/vite-plugin-shopify - tailwind.config.ts: TailwindCSS v4 customization - tsconfig.json: TypeScript configuration - postcss.config.cjs: PostCSS with autoprefixer - package.json: All dependencies and dev scripts - src/main.css: TailwindCSS entry with @layer directives - src/main.js: JavaScript entry with HMR support - snippets/vite.liquid: Smart asset loader for dev/production - sections/hero.liquid: Example section with TailwindCSS utilities ## Documentation - VITE_SETUP.md: Complete setup and configuration guide - QUICKSTART.md: Quick reference for daily development - README.md: Updated with Vite + TailwindCSS info - .vscode/settings.json: VS Code configuration for Tailwind IntelliSense ## Updated Files - layout/theme.liquid: Integrated Vite assets via snippet - .gitignore: Added build artifacts and node_modules - .shopifyignore: Excluded source files from Shopify sync ## Development Workflow ```bash npm install # Install dependencies npm run dev # Run Vite + Shopify CLI concurrently npm run build # Build production assets npm run shopify:push # Deploy to Shopify ``` ## Benefits - 30% faster development cycle with HMR - No page reload for CSS/JS changes - Modern utility-first CSS approach - Type-safe JavaScript with TypeScript - Optimized production bundles 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit enhances Skeleton Theme with modern build tooling:
Added Features
New Files
Documentation
Updated Files
Development Workflow
Benefits
🤖 Generated with Claude Code