← 返回
开发者工具

Web Development

Build, debug, and deploy websites using HTML, CSS, JavaScript, and modern frameworks following production best practices.
使用 HTML、CSS、JavaScript 和现代框架构建、调试和部署网站,遵循生产最佳实践。
ivangdavila
开发者工具 clawhub v1.0.0 1 版本 95530.9 Key: 无需
★ 18
Stars
📥 10,157
下载
💾 1,231
安装
1
版本
#latest

概述

Quick Reference

NeedSee
-----------
HTML/CSS issueshtml-css.md
JavaScript patternsjavascript.md
React/Next.js/frameworksframeworks.md
Deploy to productiondeploy.md
Performance/SEO/a11yperformance.md

Critical Rules

  1. DOCTYPE matters — Missing triggers quirks mode; layouts break unpredictably
  2. CSS specificity beats cascade.class overrides element selectors regardless of order
  3. === not == — Type coercion causes "0" == false to be true
  4. Async/await in loopsforEach doesn't await; use for...of or Promise.all
  5. CORS is server-side — No client-side fix; configure Access-Control-Allow-Origin on the server
  6. Responsive = viewport meta — Without , mobile renders desktop-width
  7. Form without preventDefault — Page reloads; call e.preventDefault() in submit handler
  8. Images need dimensions — Missing width/height causes layout shift (CLS penalty)
  9. HTTPS or blocked — Mixed content (HTTP resources on HTTPS pages) gets blocked by browsers
  10. Environment variables leakNEXT_PUBLIC_* exposes to client; never prefix secrets

Common Requests

"Make it responsive" → Mobile-first CSS with media queries; test at 320px, 768px, 1024px

"Deploy to production" → See deploy.md for Vercel/Netlify/VPS patterns

"Fix CORS error" → Server must send headers; proxy through same-origin if you can't control server

"Improve performance" → Lighthouse audit; focus on LCP, CLS, FID; lazy-load below-fold images

"Add SEO" → Title/description per page, semantic HTML, OG tags, sitemap.xml

Framework Decision Tree

  • Static content, fast builds → Astro or plain HTML
  • Blog/docs with MDX → Astro or Next.js App Router
  • Interactive app with auth → Next.js or Remix
  • Full SSR/ISR control → Next.js
  • Simple SPA, no SEO needed → Vite + React/Vue

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 09:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,769
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,677
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,809