Skip to content

UnoCSS Inspector does not work with vite base config #4488

@pdanpdan

Description

@pdanpdan

UnoCSS version

66.1.0-beta.3

Describe the bug

When using base option in vite.config UnoCSS Inspector announces it will use the specified path but in fact doesn't.

Reproduction

  • create a basic Vite + Vue project (pnpm create vue@latest - doesn't matter what options are selected)
  • add UnoCSS (pnpm add -D unocss and add it in vite.config)
  • start pnpm dev - UnoCSS Inspector: http://localhost:5173/__unocss/ is displayed and it works
  • set base: '/test', in vite.config
  • start pnpm dev - UnoCSS Inspector: http://localhost:5173/test/__unocss/ is displayed (correct) but it does not work - it is in fact available at http://localhost:5173/__unocss/ where it works

System Info

Ubuntu, Chrome

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions