-
Notifications
You must be signed in to change notification settings - Fork 88
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
problem with svg in scss #25
Comments
@vAhyThe Could you share your webpack config? |
|
I don't see anything wrong here, if you are trying to use SVG as a CSS background, then just ensure that the path is correct. |
path is correct can i somehow tell in config not to compile route in scss ?? |
I have the same problem. When SCSS tries to resolve an svg asset it doesn't get the publicPath from webpack, but instead it gets the actual file system path and that is not correct. |
@visualfanatic yes, but its not crucial. |
Just wanting to add to on, this is still happening for me also.
with the following rule: |
My solution is to organize svg namespace (inline.name.svg) and share loader for them:
equal:
|
I decided not to add svg rule to webpack and use webpack-loader-syntax to import svg as Vue components. Like this:
|
Hi,
if i have svg like
background-image: url("./img/some.svg");
it dont works now after i install
vue-svg-loader
and its private
Cannot GET /Applications/someproject/src/components/somecomponent/img/some.svg
some hints ??
thx for reply
The text was updated successfully, but these errors were encountered: