antfu-collective / vite-ssg

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

the --base argument not being respected #339

Open sombriks opened 1 year ago

sombriks commented 1 year ago

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