This repository was archived by the owner on Jan 18, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 149
Can not transform image to base64 with url-loader #128
Comments
I'm bit confused here. When you say Here you are trying to use |
Sorry I don't explain exactly. I just want to use Do I have to add the |
There is known bug in |
I update the rollup-plugin-vue to 2.4.2 and find it throw a exception when I add the |
Please share a repro. I need to look into the problem. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected behavior
I write a header.vue file and add some background:url() in the styles, and add url-loader in the rollup.config.js.
But I find the url() won't be transformed to base64.
Actual behavior
background:url(./img/xxx.png) transform: background:url(data:xxxxxx....).
Steps to reproduce the behavior
here is my rollup.config.js
And I had debugger in the url-loader and find it doesn't require any img file in the process. So I check the vue-loader source code and guess the loader translate the style and doesn't require the img.
The text was updated successfully, but these errors were encountered: