webpack to configure postcss-loader invalid

The document configuration is as follows :

postcss.config.js
module.exports = { plugins: [ require('autoprefixer') ] }
webpack.config.js
const path = require('path'); const webpack = require('webpack'); const {
CleanWebpackPlugin } = require('clean-webpack-plugin'); const HtmlWebpackPlugin
= require('html-webpack-plugin'); module.exports = { entry: { index:
'./src/index/index.js', demo: './src/demo/demo.js' }, output: { path:
path.resolve(__dirname, 'dist'), filename: '[name]-[hash].js', }, plugins: [
new webpack.BannerPlugin(' copyright , Copy must be investigated '), new webpack.ProvidePlugin({ $: 'jquery',
jQuery: 'jquery' }), new CleanWebpackPlugin(), new HtmlWebpackPlugin({ title:
'index.html', filename: 'index.html', template: './src/index/index.html',
inject: 'body', chunks: ['index'] }), new HtmlWebpackPlugin({ title:
'demo.html', filename: 'demo.html', template: './src/demo/demo.html', inject:
'body', chunks: ['demo'] }), ], module: { rules: [{ test: /\.(css|less)$/, use:
[{ loader: "style-loader" // creates style nodes from JS strings }, { loader:
"css-loader" // translates CSS into CommonJS }, { loader: "less-loader" //
compiles Less to CSS }, { loader: "postcss-loader" }] }] }, };
package.json
{ "name": "multipage", "version": "1.0.0", "description": "", "main":
"index.js", "scripts": { "start": "webpack" }, "keywords": [], "author": "",
"license": "ISC", "devDependencies": { "autoprefixer": "^9.8.0",
"clean-webpack-plugin": "^3.0.0", "css-loader": "^3.5.3",
"html-webpack-plugin": "^4.3.0", "less": "^3.11.1", "less-loader": "^6.1.0",
"postcss-loader": "^3.0.0", "style-loader": "^1.2.1", "webpack": "^4.43.0",
"webpack-cli": "^3.3.11" }, "dependencies": { "jquery": "^3.5.1" }, //
Configuration here autoprefixer combination package.json In browserlist So it worked "browserslist": [ "last 2
versions", "> 1%", "iOS 7", "last 3 iOS versions" ] }
The test is effective ^_^

Technology
©2020 ioDraw All rights reserved
Java exercises 1: Simply define a car class New photo album app launched by Microsoft : Using cross platform framework React Native to write Chapter two Fundamentals of programming Programming exercises pandas Time order of webpack Code segmentation import()Vue slot slot: Default slot , Named slot , Scope slot Fundamentals of data analysis ——R language ( Processing missing values )C++ Implementation of matrix meteor shower effect PostMan Advanced Usage , Interface MD5+Secret autograph Sign The 12th Blue Bridge Cup B group C/C++ Provincial competition