Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Import Ant Design CSS dynamically so it works on CodeSandBox
if (process.env.NODE_ENV === "production") {
} else {
// Make sure that the custom stylesheet overrides antd css.
import("antd/dist/antd.css").then(() => import("./styles.css"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.