iamkun

Results 113 comments of iamkun

You can just copy the logic at present. It's super easy, just to use alias `dayjs` to replace `moment` in your project, and add the relevant dayjs plugins.

maybe you should look for something related to "how to add webpack plugin in umi"

> @iamkun 可以搞一个 umi 插件。 也还真可以,有空我看下

please load Day.js timezone plugin https://day.js.org/docs/en/timezone/timezone

@afc163 请教下 antd 的 定义文件是写死 moment.Moment type 的, 这种情况下使用了插件替换 alias ,是不是没啥好办法解决这个问题?

please you are using the correct preset for antd4 or antd 3

please make sure you are using antd4 if you are using this config

you can try to use it with no config, just ``` plugins: [ new AntdDayjsWebpackPlugin() ] ```

well a reproduction demo, please