antfu-collective / vite-ssg

Static site generation for Vue 3 on Vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the --base argument not being respected

sombriks opened this issue · comments

Describe the bug

when building with vite the --base parameter can be used to configure the base path.

it's quite useful and simple to use.

it does not work, however, when we change from vite build to vite-ssg build.

Reproduction

https://github.com/sombriks/simple-vue-vite-ssg

System Info

[sombriks@thanatos ~]$ npx envinfo --system --binaries --browsers
npx: instalou 1 em 1.041s

  System:
    OS: Linux 6.2 Fedora Linux 37 (Workstation Edition)
    CPU: (16) x64 AMD Ryzen 7 PRO 5850U with Radeon Graphics
    Memory: 34.21 GB / 45.87 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 14.20.0 - ~/.nvm/versions/node/v14.20.0/bin/node
    npm: 6.14.17 - ~/.nvm/versions/node/v14.20.0/bin/npm
  Browsers:
    Chrome: 112.0.5615.49
    Firefox: 111.0.1

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.