Merge pull request #32761 from backstage/rugvip/css-exports-support

cli: add support for CSS exports in package build
This commit is contained in:
Patrik Oldsberg
2026-02-10 13:23:02 +01:00
committed by GitHub
20 changed files with 344 additions and 9532 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/cli': patch
---
Added support for CSS exports in package builds. When a package declares a CSS file in its `exports` field (e.g., `"./styles.css": "./src/styles.css"`), the CLI will automatically bundle it during `backstage-cli package build`, resolving any `@import` statements. The export path is rewritten from `src/` to `dist/` at publish time.
Fixed `backstage-cli repo fix` to not add `typesVersions` entries for non-script exports like CSS files.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/ui': patch
---
Migrated to use the standard `backstage-cli package build` for CSS bundling instead of a custom build script.