Ant Design V5 - Remove Style Import

Comment out the style file import from antd (in js file).

Ant Design
jscodeshift
Estimated time saving
Up to 1 minutes/occurrence
Change mode
Assistive
Applicability criteria

Ant Design >= 5.0.0

Made by
Ant Design
Ant Design

Usage →

Codemod CLI:

intalling vs code extension tooltip icon
codemod antd/5/remove-style-import
copy CLI command icon

Codemod VS Code extension:

intalling vs code extension tooltip icon
vs code logo
Run in VS Code

Description

Comment out the style file import from antd (in js file).

Before

import 'antd/es/auto-complete/style'; import 'antd/lib/button/style/index.less'; import 'antd/dist/antd.compact.min.css';

After

// import 'antd/es/auto-complete/style'; // import 'antd/lib/button/style/index.less'; // import 'antd/dist/antd.compact.min.css';