cli: raw-loader fix

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-10-22 11:05:48 +02:00
parent d99b439399
commit b4627f29b2
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Fixed an issue where the `raw-loader` for loading HTML templates was not resolved from the context of the CLI package.
+1 -1
View File
@@ -209,7 +209,7 @@ export async function createConfig(
minify: false,
publicPath: '<%= publicPath %>',
filename: 'index.html.tmpl',
template: `raw-loader!${paths.targetHtml}`,
template: `${require.resolve('raw-loader')}!${paths.targetHtml}`,
}),
);
}