From 39e2ae53e248269300e9d872939003c624d14561 Mon Sep 17 00:00:00 2001 From: EugeneHlushko Date: Fri, 2 Feb 2018 18:00:30 +0700 Subject: [PATCH 1/4] Update docs with info-verbosity option --- src/content/configuration/watch.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/content/configuration/watch.md b/src/content/configuration/watch.md index 8284d9470540..c320e879d2b5 100644 --- a/src/content/configuration/watch.md +++ b/src/content/configuration/watch.md @@ -71,6 +71,13 @@ poll: 1000 // Check for changes every second T> If watching does not work for you, try out this option. Watching does not work with NFS and machines in VirtualBox. +## `info-verbosity` + +`string`: `none` `info` `verbose` + +Controls verbosity of the lifecycle messaging e.g. `Started watching files...`. Setting `info-verbosity` to `verbose` will also message to console at the beginning and the end of incremental build. `info-verbosity` is set to `info` by default. + + ## Troubleshooting If you are experiencing any issues, please see the following notes. There are a variety of reasons why webpack might miss a file change. From 2bcc458d78120409864ea5a324929680401a886b Mon Sep 17 00:00:00 2001 From: EugeneHlushko Date: Fri, 2 Feb 2018 18:04:49 +0700 Subject: [PATCH 2/4] Update docs with info-verbosity option: add usage example --- src/content/configuration/watch.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/content/configuration/watch.md b/src/content/configuration/watch.md index c320e879d2b5..2ef257d1b737 100644 --- a/src/content/configuration/watch.md +++ b/src/content/configuration/watch.md @@ -77,6 +77,9 @@ T> If watching does not work for you, try out this option. Watching does not wor Controls verbosity of the lifecycle messaging e.g. `Started watching files...`. Setting `info-verbosity` to `verbose` will also message to console at the beginning and the end of incremental build. `info-verbosity` is set to `info` by default. +```bash +webpack --watch --info-verbosity verbose +``` ## Troubleshooting From 32695ef9e609d6778873a30af835a3cba7fd03a2 Mon Sep 17 00:00:00 2001 From: EugeneHlushko Date: Thu, 22 Feb 2018 10:17:41 +0200 Subject: [PATCH 3/4] ProfilingPlugin: add to the docs: Contributor listing --- src/content/configuration/watch.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/configuration/watch.md b/src/content/configuration/watch.md index 2ef257d1b737..ae0814a5c231 100644 --- a/src/content/configuration/watch.md +++ b/src/content/configuration/watch.md @@ -5,6 +5,7 @@ contributors: - sokra - skipjack - SpaceK33z + - EugeneHlushko --- webpack can watch files and recompile whenever they change. This page explains how to enable this and a couple of tweaks you can make if watching does not work properly for you. From a05ba3df9322b5d9bb54f51f39a363c18d49347f Mon Sep 17 00:00:00 2001 From: Greg Venech Date: Thu, 22 Feb 2018 23:26:01 -0500 Subject: [PATCH 4/4] docs(config): update grammar and formatting --- src/content/configuration/watch.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/content/configuration/watch.md b/src/content/configuration/watch.md index ae0814a5c231..475440ef353c 100644 --- a/src/content/configuration/watch.md +++ b/src/content/configuration/watch.md @@ -10,6 +10,7 @@ contributors: webpack can watch files and recompile whenever they change. This page explains how to enable this and a couple of tweaks you can make if watching does not work properly for you. + ## `watch` `boolean` @@ -22,6 +23,7 @@ watch: false T> In webpack-dev-server and webpack-dev-middleware watch mode is enabled by default. + ## `watchOptions` `object` @@ -35,6 +37,7 @@ watchOptions: { } ``` + ## `watchOptions.aggregateTimeout` `number` @@ -45,6 +48,7 @@ Add a delay before rebuilding once the first file changed. This allows webpack t aggregateTimeout: 300 // The default ``` + ## `watchOptions.ignored` For some systems, watching many file systems can result in a lot of CPU or memory usage. It is possible to exclude a huge folder like `node_modules`: @@ -59,6 +63,7 @@ It is also possible to use [anymatch](https://github.com/es128/anymatch) pattern ignored: "files/**/*.js" ``` + ## `watchOptions.poll` `boolean` `number` @@ -76,12 +81,13 @@ T> If watching does not work for you, try out this option. Watching does not wor `string`: `none` `info` `verbose` -Controls verbosity of the lifecycle messaging e.g. `Started watching files...`. Setting `info-verbosity` to `verbose` will also message to console at the beginning and the end of incremental build. `info-verbosity` is set to `info` by default. +Controls verbosity of the lifecycle messaging, e.g. the `Started watching files...` log. Setting `info-verbosity` to `verbose` will also message to console at the beginning and the end of incremental build. `info-verbosity` is set to `info` by default. ```bash webpack --watch --info-verbosity verbose ``` + ## Troubleshooting If you are experiencing any issues, please see the following notes. There are a variety of reasons why webpack might miss a file change.