cyrilwanner / next-compose-plugins

💡next-compose-plugins provides a cleaner API for enabling and configuring plugins for next.js
MIT License
736 stars 12 forks source link

use with ant-design #19

Closed abhijithvijayan closed 5 years ago

abhijithvijayan commented 5 years ago

I need to use with a monorepo project that has next/sass & next/css already set up the original example has this config https://github.com/zeit/next.js/blob/canary/examples/with-ant-design/next.config.js

my current config file is https://github.com/onepassapp/onepass/blob/master/packages/web/next.config.js

how do I use in the current file?

abhijithvijayan commented 5 years ago

Is it like Screenshot from 2019-07-04 21-02-20

this?

jzhu1224 commented 5 years ago
module.exports = withPlugins(
  [
    withCSS,
    withLess
    ]
  ],
  {
    webpack: (config, options) => {
      /** custom code */
  }
);
abhijithvijayan commented 5 years ago

@jzhu1224 Does it really matter if I don't include Less in the project as I use Sass already.