PhpStorm 突出显示输出选项 "clean" 作为 webpack 配置中的无效选项

PhpStorm highlights output option "clean" as invalid option in webpack config

PhpStorm 在我的 webpack.config.js.

中显示了以下关于指定 clean: true 的工具提示文本

webpack: Property 'clean' is not allowed
Inspection info: Validates options in the webpack configuration file (which name should start with webpack, e.g. webpack.config.js) against webpack Options Schema.

Disable this inspection to turn off validation and code completions inside the configuration object.

我无法选择禁用 ;-)

我检查了选项架构并找到了 属性 'clean'。据我了解架构,它应该是正确的。

这是我的 webpack.config.js:

const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    entry: './src/app.js',
    output: {
        clean: true,
        filename: 'index.js',
        path: path.resolve(__dirname, 'dist'),
    },
    mode: "development",
    plugins: [
        new HtmlWebpackPlugin({
            title: 'Output Management',
        }),
    ],
};

版本: 网络包:5.24.3 PhpStorm:2020.3.2

我做错了什么?

捆绑的 webpack 架构需要更新,请投票给 WEB-49925 以获得任何进展通知