В моем файле next.config.js есть следующая конфигурация:
const withCSS = require('@zeit/next-css');
const withSass = require('@zeit/next-sass');
const withImages = require('next-images');
const withFonts = require('next-fonts');
module.exports = withCSS(
withSass(
withFonts(), // <=== this is wrong?
withImages({
distDir: '../_next',
webpack(config) {
return config;
}
})
)
);
Последнее, что мне нужно добавить, это плагин Next-Fonts.
Я не уверен, как правильно экспортировать withFounts
.
Мне нужен плагин для следующих шрифтов, чтобы можно было использовать 'fonts' icons
.