generated from react-component/trigger
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
when runing predev script to load the styles of antd.min.css empty
I am using nextjs with the help of the function
import fs from 'fs';
import { extractStyle } from '@ant-design/static-style-extract';
// import { ConfigProvider } from "antd";
// import React from "react";
const outputPath = './public/antd.min.css';
const css = extractStyle();
console.log(css.length);
fs.writeFileSync(outputPath, css);
console.log(🎉 Antd CSS generated at ${outputPath});
and the CSS is not generated
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels