Skip to content

Commit

Permalink
Signed-off-by: Paul Cowan <Paul Cowan <paul.cowan@cutting.scot>
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Cowan <paul.cowan@cutting.scot>
  • Loading branch information
dagda1 committed Sep 11, 2021
1 parent 7f221c6 commit d835d11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-timers-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/cli': minor
---

replace the deprecated file-loader for fonts with assets module
14 changes: 5 additions & 9 deletions packages/cli/src/lib/bundler/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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$/,
Expand Down

0 comments on commit d835d11

Please sign in to comment.