DEV Community

Abu Sayem Md Habibullah
Abu Sayem Md Habibullah

Posted on

4

How to use the multi plugin in your next.js application

I saw many of them have problems to use multi plugins in next.js configuration file, I mean next.config.js file.

You can use official (next-compose-plugins) to wraps your all plugins and look at all plugins documentation below the link:
https://github.com/zeit/next-plugins

Also, you can try this, it's working properly.

// In your next.config.js file
const withPlugins = require('next-compose-plugins');
const withCSS = require("@zeit/next-css");
const withSass = require('@zeit/next-sass')
const withImages = require('next-images')

module.exports = withPlugins([
[withCSS(withSass())],
[withImages],
])

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay