Skip to content
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

image helpers borked v2.1.2 #176

Open
resistorsoftware opened this issue Sep 7, 2022 · 1 comment
Open

image helpers borked v2.1.2 #176

resistorsoftware opened this issue Sep 7, 2022 · 1 comment

Comments

@resistorsoftware
Copy link

Rails 7.0.3

sass:

.newbg {
  background-image: image-url("logo65.jpg");
}

Results in:

ActionView::Template::Error (Error: Invalid CSS after "...72363ac7f64a97b": expected expression (e.g. 1px, bold), was ".jpg);"
21:12:23 rails.1  |         on line 18207:114 of stdin
21:12:23 rails.1  | >> 9f2e1e2a86aebfa8a56ce47036a72363ac7f64a97b.jpg);

What is the secret to getting an scss file to compile with image helpers?

@johnnyshields
Copy link

FYI I'm maintaining dartsass-sprockets which is a fork of this gem. You can try it and see if your issue is resolved; it uses a different engine (Dart Sass) under-the-hood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants