簡體   English   中英

如何在下一個 js next.config.js 中結合插件和其他

[英]How to combine plugins and other in next js next.config.js

const withPlugins = require('next-compose-plugins');
const optimizedImages = require('next-optimized-images');

const nextConfiguration = {
  target: 'serverless', 
};

module.exports = withPlugins([optimizedImages], nextConfiguration);


trailingSlash: true
historyApiFallback: true

像這樣:

 const withPlugins = require('next-compose-plugins'); const optimizedImages = require('next-optimized-images'); const nextConfiguration = { target: 'serverless', trailingSlash: true historyApiFallback: true }; module.exports = withPlugins([optimizedImages], nextConfiguration);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM