Skip to content

Commit efe1e2f

Browse files
committed
added --watch-delay
1 parent eb40c79 commit efe1e2f

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ Options:
315315
--alias Set a alias name for a module. ex. http=http-browserify [string]
316316
--debug Prints debug info to output files [boolean] [default: false]
317317
--watch Recompiles on changes (except loaders) [boolean] [default: false]
318+
--watch-delay Timeout to wait for the last change [string]
318319
--progress Displays a progress while compiling [boolean] [default: false]
319320
```
320321

@@ -467,6 +468,10 @@ else `stats` as json:
467468
}
468469
```
469470

471+
### with grunt
472+
473+
see [grunt-webpack](https://github.com/sokra/grunt-webpack).
474+
470475
## Bonus features
471476

472477
### File hash

bin/webpack.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ var argv = require("optimist")
5656
.describe("watch", "Recompiles on changes (except loaders)")
5757
.default("watch", false)
5858

59+
.string("watch-delay")
60+
.describe("watch-delay", "Timeout to wait for the last change")
61+
.default("watch", false)
62+
5963
.boolean("progress")
6064
.describe("progress", "Displays a progress while compiling")
6165
.default("progress", false)
@@ -95,6 +99,10 @@ if(argv.watch) {
9599
options.watch = true;
96100
}
97101

102+
if(argv["watch-delay"]) {
103+
options.watchDelay = parseInt(argv["watch-delay"], 10);
104+
}
105+
98106
if(argv.filenames) {
99107
options.includeFilenames = true;
100108
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack",
3-
"version": "0.3.16",
3+
"version": "0.3.17",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loading of js, json, jade, coffee, css, ... out of the box and more with custom loaders.",
66
"dependencies": {

0 commit comments

Comments
 (0)