Skip to content

Commit 432dfbc

Browse files
committed
Update docs with troubleshooting information: Peer Review updates
1 parent b7fc618 commit 432dfbc

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/content/configuration/watch.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ T> If watching does not work for you, try out this option. Watching does not wor
7474

7575
## Webpack doesn't recompile on change while watching
7676

77-
### File changes are being seen, just no files are being updated
77+
### File changes are seen, but no files are updated
7878

79-
Verify that webpack is not being notified of changes by running with the --progress flag. If progress shows on save but no files are output, it is likely a configuration issue, not a file watching issue.
79+
Verify that webpack is not being notified of changes by running webpack with the --progress flag. If progress shows on save but no files are outputted, it is likely a configuration issue, not a file watching issue.
8080

8181
```bash
8282
webpack --watch --progress
@@ -90,23 +90,21 @@ Verify that you have enough available watchers in your system. If this value is
9090
cat /proc/sys/fs/inotify/max_user_watches
9191
```
9292

93-
Arch users, add `fs.inotify.max_user_watches=524288` to `/etc/sysctl.d/99-sysctl.conf` and then execute `sysctl --system`. Ubuntu users (and possibly others): `echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p`.
93+
Arch users, add `fs.inotify.max_user_watches=524288` to `/etc/sysctl.d/99-sysctl.conf` and then execute `sysctl --system`. Ubuntu users (and possibly others), execute: `echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p`.
9494

9595
### macOS fsevents bug
9696

97-
On macOS folders can get corrupted. See this article:
98-
99-
[OS X FSEvents bug may prevent monitoring of certain folders](http://feedback.livereload.com/knowledgebase/articles/86239-os-x-fsevents-bug-may-prevent-monitoring-of-certai)
97+
On macOS folders can get corrupted. [See this article](http://feedback.livereload.com/knowledgebase/articles/86239-os-x-fsevents-bug-may-prevent-monitoring-of-certai)
10098

10199
### Windows paths
102100

103-
webpack expects absolute paths for many config options. `__dirname + "/app/folder"` is wrong, because windows uses `\` as path separator. This breaks some stuff.
101+
Because webpack expects absolute paths for many config options such as `__dirname + "/app/folder"` the Windows `\` path separator can break some functionality.
104102

105103
Use the correct separators. I.e. `path.resolve(__dirname, "app/folder")` or `path.join(__dirname, "app", "folder")`.
106104

107105
### Vim
108106

109-
On some machines Vim is preconfigured with the [backupcopy option](http://vimdoc.sourceforge.net/htmldoc/options.html#'backupcopy') set to **auto**. This could potentially cause problems with the system's file watching mechanism. Switching this option to `yes` will make sure a copy of the file is made and the original one overwritten on save.
107+
On some machines Vim is preconfigured with the [backupcopy option](http://vimdoc.sourceforge.net/htmldoc/options.html#'backupcopy') set to `auto`. This could potentially cause problems with the system's file watching mechanism. Switching this option to `yes` will make sure a copy of the file is made and the original one overwritten on save.
110108

111109
`:set backupcopy=yes`
112110

0 commit comments

Comments
 (0)