When I use webpack-cli init
to create a new webpack configuration, it generates the file webpack.prod.js
or webpack.dev.js
depending if I answer the question Which module will be the first to enter the application? [default: ./src/index]
How can I customize the filename of the generated config file ? for example webpack.config.dev.js
Default name for the webpack.config.js is webpack.config.js but you can also set this in this object and they will be named like that.
Webpack Scaffold Part 1
You can also create 3 configurations with the query, that's up to you at the end. The default entry point is index.js, but you can also influence them in the prompts too.
Check Webpack Scaffolding
You can change the webpack.config.js name in the webpackOptions too, because you have not posted any code I assume that you have already extended so far a class with the yeoman generator.
Name your webpack config something special
As you can see, there are many ways to influence the name ;)