Skip to content

Commit ff88513

Browse files
authored
Merge pull request webpack#3896 from webpack/revert-3576-master
Revert "Timestamp & Save flag"
2 parents 330ca07 + 983da19 commit ff88513

3 files changed

Lines changed: 6 additions & 14 deletions

File tree

bin/config-yargs.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,6 @@ module.exports = function(yargs) {
154154
describe: "Watch the filesystem for changes",
155155
group: BASIC_GROUP
156156
},
157-
"save": {
158-
type: "boolean",
159-
alias: "s",
160-
describe: "Rebuilds on save regardless of changes in watch mode",
161-
group: BASIC_GROUP
162-
},
163157
"watch-stdin": {
164158
type: "boolean",
165159
alias: "stdin",

bin/webpack.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,7 @@ function processOptions(options) {
331331
process.stdout.write(JSON.stringify(stats.toJson(outputOptions), null, 2) + "\n");
332332
} else if(stats.hash !== lastHash) {
333333
lastHash = stats.hash;
334-
process.stdout.write("\n" + new Date() + "\n" + "\n");
335334
process.stdout.write(stats.toString(outputOptions) + "\n");
336-
if(argv.s) lastHash = null;
337335
}
338336
if(!options.watch && stats.hasErrors()) {
339337
process.on("exit", function() {

test/binCases/stats/single-config/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ module.exports = function testAssertions(code, stdout, stderr) {
44
code.should.be.oneOf(0, 1);
55

66
stdout.should.be.ok();
7-
stdout[3].should.containEql("Hash: ");
8-
stdout[4].should.containEql("Version: ");
9-
stdout[5].should.containEql("Time: ");
10-
stdout[7].should.containEql("null.js");
11-
stdout[8].should.containEql("./index.js");
12-
stdout[8].should.containEql("[built]");
7+
stdout[0].should.containEql("Hash: ");
8+
stdout[1].should.containEql("Version: ");
9+
stdout[2].should.containEql("Time: ");
10+
stdout[4].should.containEql("null.js");
11+
stdout[5].should.containEql("./index.js");
12+
stdout[5].should.containEql("[built]");
1313

1414
stderr.should.be.empty();
1515
}

0 commit comments

Comments
 (0)