-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在umi项目里面怎么配置? #47
Comments
maybe you should look for something related to "how to add webpack plugin in umi" |
@iamkun 可以搞一个 umi 插件。 |
也还真可以,有空我看下 |
umi 用户非常需要。急 |
同需要 |
已经迫不及待了 |
暂时可以通过 chainWebpack 来新增插件 export default defineConfig({
// ...
chainWebpack(config) {
config
.plugin('antd-dayjs-webpack-plugin')
.use('antd-dayjs-webpack-plugin')
.end();
}
}); |
umi项目中可以通过 webpack-chain 的 API 修改 webpack 配置,详细用法参考umi chainwebpack。 以下是具体配置代码: const AntdDayjsWebpackPlugin = require('antd-dayjs-webpack-plugin');
export default {
// ...
chainWebpack(config) {
config.plugin('antd-dayjs-webpack-plugin').use(AntdDayjsWebpackPlugin);
// 如果是antdv3,使用下面的配置
// config.plugin('antd-dayjs-webpack-plugin').use(AntdDayjsWebpackPlugin, [{ preset: 'antdv3' }]);
},
// ....
} antdv3不预设会出现https://github.com/ant-design/antd-dayjs-webpack-plugin/issues/57的现象 |
|
|
请问如何引入中文语言包呢?发现这样子直接启用 无法使用中文语言包 |
发现直接在 umi 的 |
开启 mfsu 报错,你们遇到了吗? #66 |
把cache全部删除,重新启动。。。。研究了一下午才发现发的。。。。 |
我用的v3,参数也配置了,还是出现日历全部展示同一个数字的现象 |
因为我umi项目里面没有config这个配置文件的。。。
The text was updated successfully, but these errors were encountered: