rollup-plugin-css-only icon indicating copy to clipboard operation
rollup-plugin-css-only copied to clipboard

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

Open NullVoxPopuli opened this issue 4 months ago • 1 comments

Input CSS:

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

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

config:

css({ output: 'styles.css' }),

output:

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

Same issue as https://github.com/jleeson/rollup-plugin-import-css/issues/42

NullVoxPopuli avatar Oct 20 '25 19:10 NullVoxPopuli