markstream-vue2-vite

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Markstream Vue 2 Vite

Markstream Vue 2 Vite

Use this skill when the host app is Vue 2 and the bundler is Vite.
当宿主应用为Vue 2且构建工具为Vite时,使用本技能。

Workflow

工作流程

  1. Confirm the repo is Vue 2 with Vite-based tooling.
  2. Install
    markstream-vue2
    plus only the requested optional peers.
  3. Import
    markstream-vue2/index.css
    after resets.
  4. Use Vite worker imports when the repo needs bundled workers.
    • markstream-vue2/workers/... ?worker
      or
      ?worker&inline
      patterns are allowed here.
  5. Keep Composition API decisions explicit for Vue 2.6 repos.
  6. Validate with the smallest useful Vite dev or build command.
  1. 确认仓库是基于Vite工具链的Vue 2项目。
  2. 安装
    markstream-vue2
    以及仅用户要求的可选依赖。
  3. 在重置样式之后导入
    markstream-vue2/index.css
  4. 当仓库需要打包worker时,使用Vite的worker导入方式。
    • 此处允许使用
      markstream-vue2/workers/... ?worker
      ?worker&inline
      模式。
  5. 对于Vue 2.6仓库,明确Composition API的相关决策。
  6. 使用最小可用的Vite开发或构建命令进行验证。

Default Decisions

默认决策

  • Prefer bundled workers over CDN workers in Vite-based Vue 2 repos.
  • Keep UnoCSS or Tailwind resets before Markstream CSS.
  • Use the generic
    markstream-vue2
    skill only when the bundler-specific choice does not matter.
  • 在基于Vite的Vue 2仓库中,优先选择打包worker而非CDN worker。
  • 将UnoCSS或Tailwind的重置样式放在Markstream CSS之前。
  • 仅当无需区分构建工具特定选项时,才使用通用的
    markstream-vue2
    技能。

Useful Doc Targets

有用的文档目标

  • docs/guide/vue2-quick-start.md
  • docs/guide/vue2-installation.md
  • docs/guide/tailwind.md
  • docs/guide/troubleshooting.md
  • docs/guide/vue2-quick-start.md
  • docs/guide/vue2-installation.md
  • docs/guide/tailwind.md
  • docs/guide/troubleshooting.md