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

Handle url() in CSS files #59

Open
Tracked by #76
aalin opened this issue Feb 9, 2023 · 0 comments · May be fixed by #76
Open
Tracked by #76

Handle url() in CSS files #59

aalin opened this issue Feb 9, 2023 · 0 comments · May be fixed by #76

Comments

@aalin
Copy link
Contributor

aalin commented Feb 9, 2023

The CSS transformer will take:

foo { background-image: url("foobar.png"); }

and turn it into:

.demo_foo\?uc88-KVY { background-image: url("LMXcDq"); }

and also return this dependencies-array:

[
  {
    type: "url",
    url: "foobar.png",
    placeholder: "LMXcDq",
    loc: {
      filePath: "demo.rb",
      start: {
        line: 3,
        column: 25
      },
      end: {
        line: 3,
        column: 34
      }
    }
  }
]

So, somehow images need to be loaded and the placeholders should be replaced with their paths

@aalin aalin mentioned this issue Feb 9, 2023
6 tasks
@aalin aalin changed the title Load dependencies in CSS files Handle url() in CSS files Feb 9, 2023
@aalin aalin linked a pull request Mar 31, 2024 that will close this issue
17 tasks
@aalin aalin linked a pull request Jun 22, 2024 that will close this issue
17 tasks
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

Successfully merging a pull request may close this issue.

1 participant