Skip to content

Handle url() in CSS files #59

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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