From 20131c561ae440e70dc18ff74b994890af859ea1 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 9 Feb 2026 13:38:45 +0100 Subject: [PATCH] Add changesets for CSS exports support Signed-off-by: Patrik Oldsberg Co-authored-by: Cursor --- .changeset/css-exports-support.md | 5 +++++ .changeset/ui-standard-build.md | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/css-exports-support.md create mode 100644 .changeset/ui-standard-build.md diff --git a/.changeset/css-exports-support.md b/.changeset/css-exports-support.md new file mode 100644 index 0000000000..69e7808ccc --- /dev/null +++ b/.changeset/css-exports-support.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': minor +--- + +Added support for CSS exports in package builds. When a package declares a CSS file in its `exports` field, the CLI will now automatically bundle it during `backstage-cli package build` using lightningcss, and rewrite the export path from `src/` to `dist/` at publish time. This allows packages to include standalone CSS files without custom build scripts. diff --git a/.changeset/ui-standard-build.md b/.changeset/ui-standard-build.md new file mode 100644 index 0000000000..d0d8bd7f65 --- /dev/null +++ b/.changeset/ui-standard-build.md @@ -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.