Closed tizzle closed 5 years ago
@tizzle Thanks for reporting this! Will have a look soon
@tizzle Pushed v 0.15.0
You can now (optionally) include SVG fonts by setting enableSvg option.
Example usage:
// next.config.js
const withFonts = require('next-fonts');
module.exports = withFonts({
enableSvg: true,
webpack(config, options) {
return config;
}
});
Let me know if this resolves your reported issue. Thanks!
Hey,
i found that after updating
next-fonts
to anything >0.10 it breaks my SVG icon loading withnext-optimized-images
. All icons are processed beforenext-optimized-images
can handle them, which leads to compile-time errors with the sprite loader:It would be nice if we could have SVG font support in
next-fonts
as an opt-in.Best regards and thanks for your work!