根据 doc Docs建议使用模块化的 antd 以确保优化并减小应用程序大小。但是,我尝试在我的 nuxt 构建配置中使用确切的代码,但应用程序大小在构建前后保持不变yarn build
下面是我的 nuxt 构建配置和构建前后的屏幕截图
build: {
analyze: true, // Remove this mode before deployment
babel: {
plugins: [
[
"import",
{
libraryName: "ant-design-vue",
libraryDirectory: "es",
style: "css"
},
]
]
}
}