Closed selique closed 5 years ago
@selique I would appreciate a PR.
@selique The Readme file already has sample code for usage of next-fonts
plugin. I'm guessing different people would have different plugins configured as per their needs viz. images plugin or sass plugin etc. Usage of those plugins would/should be available on the corresponding repos. Hence, I would suggest that we avoid mentioning other packages in the example usage.
Thanks
- RR
I disagree.
When first starting a next project from create next app, a persons first step might be setting up fonts (my situation today) and they have no next.config.js file. What custom webpack config and loaders is required?
A working example with a next.config.js with how to use this package would be a lifesaver.
module.exports = withFonts({
assetPrefix: "https://example.com",
webpack(config, options) {
return config;
}
});
I have been spinning on this for a while. Going to take a break and then try it again.
@NickFoden : something like this https://github.com/rohanray/next-fonts#usage? It's there in readme.
@rohanray thank you for the reply. As it turned out I had issues with the actual font files. Sorry for the pings. Really appreciate the follow up.
please add exemples how use this on application develop
like exemple
next.config.js