Skip to content

feat(cli): bundle only documentation sources - #2480

Open
liangmiQwQ wants to merge 4 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/docs-src-only
Open

feat(cli): bundle only documentation sources#2480
liangmiQwQ wants to merge 4 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/docs-src-only

Conversation

@liangmiQwQ

@liangmiQwQ liangmiQwQ commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

The published vite-plus package currently copies the entire docs/ workspace, including VitePress tooling, images, and deployment resources.

This PR keeps the existing website source layout—docs/index.md, docs/config/, and docs/guide/—while restricting the CLI build to the authored Markdown content. VitePress tooling, public assets, data files, and package metadata stay outside the published package.

Measured by downloading the actual vite-plus@0.2.9 tarball from npm, repacking it unchanged as a normalized baseline, and then replacing only its docs with this branch:

  • npm tarball: 1.05 MB → 516 kB, 538 kB smaller (51.1%)
  • bundled docs files: 51 → 40

This reduces the published npm package; the native vp executable itself is unchanged.

🤖 Generated with Codex

@netlify

netlify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit 0ec0e4f
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a8310a5b7cc0b00083838fd
😎 Deploy Preview https://deploy-preview-2480--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@liangmiQwQ liangmiQwQ changed the title fix(cli): bundle only documentation sources feat(cli): bundle only documentation sources Aug 17, 2026
@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 200cccfb14

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@liangmiQwQ
liangmiQwQ marked this pull request as ready for review August 17, 2026 13:09
@liangmiQwQ
liangmiQwQ requested a review from fengmk2 August 17, 2026 13:09
@fengmk2 fengmk2 self-assigned this Aug 17, 2026

@fengmk2 fengmk2 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liangmiQwQ You are amazing.

@liangmiQwQ
liangmiQwQ requested a review from fengmk2 August 17, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants