Commit fc855af
authored
feat(cli): bundle only documentation sources (#2480)
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/`—and changes the CLI build to copy
every `*.md` file recursively from `docs/`, preserving its relative
path. Generated dependency/cache trees and all non-Markdown tooling,
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 Codex1 parent a252a04 commit fc855af
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | 913 | | |
919 | 914 | | |
920 | 915 | | |
| |||
926 | 921 | | |
927 | 922 | | |
928 | 923 | | |
929 | | - | |
930 | 924 | | |
| 925 | + | |
931 | 926 | | |
932 | 927 | | |
933 | | - | |
934 | | - | |
935 | | - | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
939 | | - | |
| 939 | + | |
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| |||
0 commit comments