import withTheme from '../styles/theme'; import fs from 'fs'; import { extractStyle } from 'ui/tools'; const outputPath = './styles/antd.min.css'; // 1. default theme // const css = extractStyle(); // 2. With custom theme const css = extractStyle(withTheme); fs.writeFileSync(outputPath, css); console.log(`🎉 Antd CSS generated at ${outputPath}`);