// 将所有 less 合并为一个供 themePlugin使用constoutFile=path.join(__dirname,'../.temp/ant-design-pro.less');conststylesDir=path.join(__dirname,'../src/');config.plugin('merge-less').use(MergeLessPlugin,[{stylesDir,outFile,},]);config.plugin('ant-design-theme').use(AntDesignThemePlugin,[{antDir:path.join(__dirname,'../node_modules/antd'),stylesDir,varFile:path.join(__dirname,'../node_modules/antd/lib/style/themes/default.less'),mainLessFile:outFile,themeVariables:['@primary-color'],indexFileName:'index.html',},]);};module.exports=plugin;