-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publicPath malformed for assets imported through CSS #6346
Comments
Any update? @sodatea |
I have a similar problem. I created a vue project with vue-cli, added the vue.config.js file, and changed publicPath to "https://example.com" (I have to publish the files in a different URL than the URL that serves the index.html). |
I'm facing the same problem. Is there any workaround other than downgrading to v4? 🤔 |
I'm sorry to interrupt, if it's convenient, could you please tell me when you plan to deal with this issue? For this stale problem has existed for a long time... :sad: |
A workaround, nklayman/vue-cli-plugin-electron-builder#1286 (comment) |
Any update? I have to set images & fonts with a absolute url prefix, but it doesn`t work in css file with the setting below:
paths are start with wrong prefix |
Version
5.0.0-alpha.7
Reproduction link
https://github.com/SnosMe/font-loading-bug
Environment info
Steps to reproduce
Run
yarn electron:build --dir
and launch executable indist_electron/[PLATFORM]-unpacked/font-loading-bug(.exe)
. Open devtools console and see that the font failed to load because the request URL wasapp://fonts/...
instead ofapp://./fonts/...
.What is expected?
The
publicPath
is set toapp://./
, so the font should be requested atapp://./fonts/...
.What is actually happening?
The
./
is removed and it is loaded fromapp://fonts/...
.nklayman/vue-cli-plugin-electron-builder#1286
The text was updated successfully, but these errors were encountered: