Skip to content

Commit 07c9852

Browse files
committed
Merge pull request webpack#1211 from gbonvehi/output-file-filename
Added --output-filename to be consistent with naming conventions
2 parents f711f66 + 380b066 commit 07c9852

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/convert-argv.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,12 @@ module.exports = function(optimist, argv, convertOptions) {
260260
});
261261

262262
ifArg("output-file", function(value) {
263+
console.warn("output.file will be deprecated: Use 'output.filename' instead");
264+
ensureObject(options, "output");
265+
options.output.filename = value;
266+
});
267+
268+
ifArg("output-filename", function(value) {
263269
ensureObject(options, "output");
264270
options.output.filename = value;
265271
});

0 commit comments

Comments
 (0)