Open timofei-iatsenko opened 1 year ago
Tied with #2462
These two are related too. https://github.com/BuilderIO/qwik/issues/2462 https://github.com/BuilderIO/qwik/issues/3759
I've been making test with this errors and trying to deploy to GitHub Pages, successfully now. But I've encountered a lot of people with these same problems. I believe adding subpath would help solve a bunch of deploy problems. I'm confident enough to suggest prioritize this. 📌
cc: @adamdbradley @manucorporat
Any update on this issue...
this still doesn't work properly
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
I want to deploy my Qwik App into subpath, example: https://website.com/subpath/
I added
base: '/subpath',
to the Vite config. It works for js chunks andq:base
attribute. They are served from/subpath/build/
However, it doesn't affect css files created from css modules. They are injected directly in to the header as is (without a subpath)
This affected code in
packages/qwik/src/optimizer/src/plugins/vite.ts:420-440
fileName
returned from Rollup Build point to the file without specified base.Since the path to the css file is not relative setting
base
html tag also not work.Reproduction
https://github.com/thekip/qwik-css-basepath-issue
Steps to reproduce
yarn serve
/build
instead of/subpath/build
System Info
Additional Information
No response