Webpack “OTS parsing error” loading fonts

前端 未结 13 1247
[愿得一人]
[愿得一人] 2020-11-28 20:51

My webpack config specifies that fonts should be loaded using url-loader, and when I try to view the page using Chrome I get the following error:



        
13条回答
  •  天涯浪人
    2020-11-28 21:20

    In my case adding following lines to lambda.js {my deployed is on AWS Lambda} fixed the issue.

     'font/opentype',
     'font/sfnt',
     'font/ttf',
     'font/woff',
     'font/woff2'
    

提交回复
热议问题