antfu-collective / vite-ssg

Static site generation for Vue 3 on Vite
MIT License
1.32k stars 136 forks source link

build project and naive-ui are not in source code #357

Open Eacolt opened 1 year ago

Eacolt commented 1 year ago

Describe the bug

when use "npm run build" , the vite-ssg runing..., but I found the naiveUI are not in web source code

通过vite-ssg build命令输出dist目录,我发现打包后的html中,检查源代码,naiveUI都没包含在源码里,所有的UI元素都不在源码里,这是为什么呢?我需要SEO看到这些naive-ui元素,该怎么办呢?

Reproduction

Reproducible

System Info

System:
    OS: macOS 12.4
    CPU: (10) arm64 Apple M1 Pro
    Memory: 120.89 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.20.0 - /usr/local/bin/node
    npm: 8.19.4 - /usr/local/bin/npm
    pnpm: 8.6.5 - ~/Documents/peter/worldview/node_modules/.bin/pnpm
  Browsers:
    Chrome: 114.0.5735.198
    Safari: 15.5

Used Package Manager

npm

Validations