【发布时间】:2021-09-20 08:24:39
【问题描述】:
我需要在我的 next.config.js 文件中导出多个模块。
现在我的文件是这样的:
const nextTranslate = require("next-translate");
module.exports = { ...nextTranslate() };
我也需要这样说:
const withImages = require('next-images')
module.exports = withImages()
【问题讨论】:
-
next-compose-plugins - github.com/cyrilwanner/next-compose-plugins
-
这是否回答了您的问题:Configure multiple next plugins: withMDX, withBundleAnalyzer?您不一定需要使用
next-compose-plugins,您可以简单地链接插件调用。