2021
03-15
03-15
vite2.x实现按需加载ant-design-vue@next组件的方法
1.使用版本vite:2.0ant-design-vue:2.0.0-rc.8vue:3.0.52.安装vite插件yarnaddvite-plugin-style-import-Dornpmivite-plugin-style-import-D插件仓库地址:github3.vite.config.js配置importvuefrom'@vitejs/plugin-vue'importstyleImportfrom'vite-plugin-style-import';/***@type{import('vite').UserConfig}*/exportdefault{plugins:[vue(),styleImport({libs:[{libraryName:'ant-de...
继续阅读 >