Hi there I'm trying to use this plugin in my project
I'm using
1. "next": "^10.0.5"
2. "antd": "^4.16.0"
3. "next-plugin-antd-less": "^1.8.0"
4. "less": "^4.1.2"
and here is my next config file
const withPlugins = require("next-compose-plugins");
const { getThemeVariables } = require("antd/dist/theme");
const lessToJS = require("less-vars-to-js");
const fs = require("fs");
const path = require("path");
// antd custom variables
const themeVariables = lessToJS(
fs.readFileSync(
path.resolve(__dirname, "./styles/antd-variables.less"),
"utf8"
)
);
const antdLessConfig = {
modifyVars: {
...getThemeVariables({
dark: true, // Enable dark mode
}),
...themeVariables,
},
webpack(config) {
return config;
},
};
module.exports = withPlugins([[withAntdLess, antdLessConfig]]);
Everything is working fine on running yarn dev

but on run yarn build then yarn start I found the style is broken

all the styles i added is not used
Hi there I'm trying to use this plugin in my project
I'm using
and here is my next config file
Everything is working fine on running


yarn devbut on run
yarn buildthenyarn startI found the style is brokenall the styles i added is not used