mirror of https://github.com/webpack/webpack.git
Added --output-filename to be consistent with naming conventions
--output-pathinfo maps to output.pathinfo, however, output.filename is set by --output-file instead of --output-filename. Added the new argument while keeping the old one for compability.
This commit is contained in:
parent
df4e2e4e3d
commit
380b0665c1
|
@ -260,6 +260,12 @@ module.exports = function(optimist, argv, convertOptions) {
|
||||||
});
|
});
|
||||||
|
|
||||||
ifArg("output-file", function(value) {
|
ifArg("output-file", function(value) {
|
||||||
|
console.warn("output.file will be deprecated: Use 'output.filename' instead");
|
||||||
|
ensureObject(options, "output");
|
||||||
|
options.output.filename = value;
|
||||||
|
});
|
||||||
|
|
||||||
|
ifArg("output-filename", function(value) {
|
||||||
ensureObject(options, "output");
|
ensureObject(options, "output");
|
||||||
options.output.filename = value;
|
options.output.filename = value;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue