fix: keep plugin css below core utilities and version plugin assets by their css

This commit is contained in:
LukeGus committed 2026-09-29 19:06:57 -05:00
1 parent 80944301dd
commit 1a6f9ffad6
5 files changed
+92 -21

No files matched your search

+11
View File
@@ -63,6 +63,17 @@ describe("describePluginFrontend", () => {
expect(info.locales).toEqual(["de_DE", "en"]);
});
it("changes the version when only the stylesheet changes", () => {
const before = describePluginFrontend(plugin).assetVersion;
const css = path.join(root, "gizmo", "dist", "frontend.css");
fs.writeFileSync(css, ".gizmo{color:red}");
try {
expect(describePluginFrontend(plugin).assetVersion).not.toBe(before);
} finally {
fs.writeFileSync(css, ".gizmo{}");
}
});
it("reports nothing for an unknown plugin", () => {
expect(describePluginFrontend(undefined)).toEqual({
frontend: false,