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'
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf30e3-31e33.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf30e3-31e33.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?