Signed-off-by: Paul Cowan <Paul Cowan <paul.cowan@cutting.scot>

Signed-off-by: Paul Cowan <paul.cowan@cutting.scot>
This commit is contained in:
Paul Cowan
2021-09-11 11:09:25 +01:00
parent 7f221c6c6b
commit d835d112fe
2 changed files with 10 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': minor
---
replace the deprecated file-loader for fonts with assets module
+5 -9
View File
@@ -90,15 +90,11 @@ export const transforms = (options: TransformOptions): Transforms => {
},
},
{
test: /\.(eot|woff|woff2|ttf)$/,
use: [
{
loader: require.resolve('file-loader'),
options: {
name: 'static/[name].[hash:8].[ext]',
},
},
],
test: /\.(eot|woff|woff2|ttf)$/i,
type: 'asset/resource',
generator: {
filename: 'static/[hash][ext][query]',
},
},
{
test: /\.ya?ml$/,