[webpack-cli] Error: Unknown option ‘-p‘

Please refer to the latest official documents;

Modify the solution configuration file;

 "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1",
        "dev": " webpack serve --open",
        "build": "webpack"
    },

Welcome to add~


Read More: