Why does import css, use react+webpack in typescript?

tell me how to configure webpack and how to import css
see that the effect of the page should be that css is not loaded into

 rules: [
            {
                test: /\.ts(x?)$/,
                use: [
                    {
                        loader: "awesome-typescript-loader",
                        options: {

                        }
                    }
                ]
            },
            {
                test: /\.css$/,
                use:[
                    "style-loader",
                    {
                        loader: "typings-for-css-modules-loader",
                        options: {
                            modules: true,
                            namedExport: true
                        }
                    }
                ]               
            }
        ]
import { DatePicker } from "antd";
import * as style from "antd/dist/antd.css";
Jan.27,2022

Link description


css loader and import are incorrect and have been resolved. The code is as follows

  {
                test: /\.css$/,
                use:[
                    'style-loader',
                    'css-loader'                   
                ]               
            }
import 'antd/dist/antd.css'
Menu