Skip to content

Referenced images or other assets (via url()) are not moved (or URLs not updated) to be correct it output CSS #470

@NullVoxPopuli

Description

@NullVoxPopuli

Input CSS:

/* src/components/setup/command-bar/empty-state.css */

@layer myLayer {
  .empty {
    /* command-empty.png exists at src/components/setup/command-bar/command-empty.png */
    background: url("./command-empty.png") no-repeat;
  }
}

config:

postcss({ extract: 'styles.css' }),

output:

/* dist/styles.css */ 
@layer myLayer {
  .empty {
    /* there is no command-empty.png in dist */
    background: url("./command-empty.png") no-repeat;
  }
}

same issue as

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions