webpack.config.js in same directory ignored/not detected
This is my first project with webpack, so it's possible I'm doing something incorrectly. I have a webpack.config.js file in a subdirectory of my project, setup to process files in that directory.
Whenever I run 'webpack' from the console, it just spits out the --help/usage information, instead of processing the files. It works fine when I invoke it and pass in a file directly, but no matter what I try (uninstalling/reinstalling), passing in the config file manually via --config, all it does is spit out the --help/usage info. So either it just doesn't find the file (I've checked, its spelled correctly) or something else is wrong.
I'm not sure what the problem is.
Do you have entry and output.filename in your webpack.config.js?
I didn't specify an output filename. I specified an output path, but I assumed it would default to the name of the input file if one is not specified which is how browserify (which I used previously) works.
I just added it now, and it seems to work. Thanks. A more helpful error message (like "You need to specify an output filename') may be a good idea.