Craco / Ant Design : Replacing Moment By Dayjs Configuration
See original GitHub issueI’m trying to add a webpack plugin to Craco but I’m not sure if I’m doing it the right way.
const CracoLessPlugin = require('craco-less') const AntdDayjsWebpackPlugin = require('antd-dayjs-webpack-plugin')
module.exports = {
webpack: {
plugins: [new AntdDayjsWebpackPlugin()],
},
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: { '@primary-color': '#2a9d8f', '@text-color': '#264653' },
javascriptEnabled: true,
},
},
},
},
],
}
Any ideas on the correct config ? thx
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
Craco / Ant Design : Replacing Moment By Dayjs ... - GitHub
I'm trying to add a webpack plugin to Craco but I'm not sure if I'm doing it the right way. const CracoLessPlugin =...
Read more >Craco / Ant Design : Replacing Moment By Dayjs Configuration
I'm trying to add a webpack plugin to Craco but I'm not sure if I'm doing it the right way. const CracoLessPlugin =...
Read more >Use custom date library - Ant Design
By default, Ant Design use Day.js to handle time and date. Day.js is an immutable date-time library alternative to Moment.js with the same...
Read more >antd replace moment with dayjs - Stack Overflow
since moment is no longer maintained, I am replacing it with dayjs on ant design. The issue comes when using the datepicker, it...
Read more >antd-dayjs-webpack-plugin - npm
Day.js webpack plugin for Ant Design (antd). Latest version: 1.0.6, last published: 2 years ago. Start using antd-dayjs-webpack-plugin in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As mentioned in https://github.com/ant-design/antd-dayjs-webpack-plugin/issues/45#issuecomment-1041424861
Here’s my setup for craco + antd + dayjs: