EvoCalculator.Client2/next.config.js
Chika 519fe19325 next.config: remove antd plugin
(replace with less loader to keep support swc)
2022-04-21 22:39:00 +03:00

28 lines
520 B
JavaScript

const withPlugins = require('next-compose-plugins');
const withLess = require('next-with-less');
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
compiler: {
styledComponents: true,
},
};
const plugins = [
[
withLess,
{
lessLoaderOptions: {
lessOptions: {
modifyVars: {
'primary-color': process.env.NEXT_PUBLIC_COLOR_PRIMARY,
},
},
},
},
],
];
module.exports = withPlugins(plugins, nextConfig);