Skip to content

Handle url() in CSS files #59

@aalin

Description

@aalin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions