frankwallis / WebpackAspnetMiddleware

Webpack development middleware for ASP.NET 5
50 stars 7 forks source link

Failed to decode downloaded font #11

Closed balkarov closed 7 years ago

balkarov commented 7 years ago

Hello. Thank you for your library.

When I use your middleware I get error for loading fonts

Failed to decode downloaded font: http://localhost:12496/bundle/d0c6e2dcac826fe1c798bf6a4986b0f2.woff
OTS parsing error: incorrect file size in WOFF header

You can try use font-awesome in webpack

PS: Without middleware all works

m-ermolaev commented 7 years ago

@balkarov, hey, yeah! I have the same issue...

41517a7fb34af7ce505f7c9bcdfb7dea

balkarov commented 7 years ago

@lainiwakurafan I solved my problem. I just change to native library 😄 UseWebpackDevMiddleware from Microsoft.AspNetCore.SpaServices

I advise use it. More information on github AspNetCore.SpaServices

frankwallis commented 7 years ago

Thank you for raising this, it should now be fixed in 2.1.0. It will also require upgrading the webpack-aspnet-middleware npm package to 2.1.0 as well.