Skip to content

empty antd.min.css #3

@kolpaja

Description

@kolpaja

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions