rollup-plugin-css-only
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
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