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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Svg is abstracted from css file. #696
Comments
Hello, Adding Index: webpack.config.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/webpack.config.js b/webpack.config.js
--- a/webpack.config.js (revision 7884fd3d83e86b887553087a8fe1ca9af4fc150a)
+++ b/webpack.config.js (date 1691670185129)
@@ -43,6 +43,7 @@
],
}, {
test: /\.svg(\?.*)?$/, // match img.svg and img.svg?param=value
+ type: 'javascript/auto',
use: [
{
loader: 'svg-url-loader', This issue is not related to Because of that, I am closing the issue. The patch written above should help. |
I believe the last comments in #524 are about similar use case. |
many thx~馃尮馃尮馃尮 |
Hi, I've met a problem that encoded svg code was abstracted from its source css file.
The code in source file is like as following馃憞
After I run the command
npm run build
, output files in the destination directory 'dist' are like as following picture.The repository address is https://github.com/Evashasha/resolve-url-loader-test .
I'm looking forward author's help.馃尮馃尮馃尮
The text was updated successfully, but these errors were encountered: