Closed jeanmatthieud closed 3 years ago
Antd 14? your say Antd 4?
Hi, Sorry, I edited my issue. I will check your tips, and issue #36
I tried to add @import '~antd/lib/style/themes/default.less';
to my less file, but it didn't changed anything...
does not work also with antd "^4.13.0", i need to set in modifyVars: { '@primary-color': '#ff0000' }.. to get it working
does not work also with antd "^4.13.0", i need to set in modifyVars: { '@primary-color': '#ff0000' }.. to get it working
Where have you added this "modifyVars" thing? in next.config.js, babelrc or less file? Could you please provide an example?
does not work also with antd "^4.13.0", i need to set in modifyVars: { '@primary-color': '#ff0000' }.. to get it working
I've added it to next.config.js and it still doesn't work Antd 4.15+
@akay0214 only webpack4 now.
@akay0214 only webpack4 now.
I use webpack 4
can you add a .babelrc.js
? https://github.com/SolidZORO/next-plugin-antd-less/blob/master/README.md#usage
can you add a
.babelrc.js
? https://github.com/SolidZORO/next-plugin-antd-less/blob/master/README.md#usage
I have .babelrc file
{ presets: [ 'next/babel' ], plugins: [ [ 'superjson-next' ], [ 'import', { libraryName: 'antd', style: true } ] ] }
@akay0214 I can't help you because there is not enough information, maybe you can open a new issue, describe your problem in detail and give the error.
Here was solved using:
lessVarsFilePathAppendToEndOfContent: true,
I used the package with Antd 4.13.1 After upgrading to Antd 4.14+ (or Antd 4.15+), the customization stopped working.
I have the latest plugin release (v1.0.8) And next@10.1.3
My less file :
My next.config.js file :