Cssssyntax error in webpack [How to Solve]

webpack.config.js

...
module: {
        rules: [
            {
                test: /\.css$/,
                use: ['style-loader', 'css-loader'],
            },
        ],
    },
...

Pay attention to the order of 'style loader ','css loader' and keep it consistent with the document.

Read More: