I want to create a file named background.js inside my build folder. This is the command I use:
webpack --mode production ./src/background -o ./build/background.js
But this creates a folder named background.js inside my build folder. I didn't find any other flag on the webpack-cli documentation. So how do I specify an output filename with the Webpack CLI?