Merge pull request #27297 from backstage/rugvip/raw

cli: raw-loader fix
This commit is contained in:
Patrik Oldsberg
2024-10-22 12:12:30 +02:00
committed by GitHub
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}`,
}),
);
}