In my package.json file I have:
"scripts": {
"dev": "webpack --mode development ./x/frontend/src/index.js --output ./x/frontend/static/frontend/main.js",
"build": "webpack --mode production ./x/frontend/src/index.js --output ./x/frontend/static/frontend/main.js"
},
and when I try to run this command: npm run build it shows me an error: [webpack-cli] Error: Unknown option '--output'
How can I fix this?