You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/configuration/watch.md
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -74,9 +74,9 @@ T> If watching does not work for you, try out this option. Watching does not wor
74
74
75
75
## Webpack doesn't recompile on change while watching
76
76
77
-
### File changes are being seen, just no files are being updated
77
+
### File changes are seen, but no files are updated
78
78
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.
80
80
81
81
```bash
82
82
webpack --watch --progress
@@ -90,23 +90,21 @@ Verify that you have enough available watchers in your system. If this value is
90
90
cat /proc/sys/fs/inotify/max_user_watches
91
91
```
92
92
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`.
94
94
95
95
### macOS fsevents bug
96
96
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)
100
98
101
99
### Windows paths
102
100
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.
104
102
105
103
Use the correct separators. I.e. `path.resolve(__dirname, "app/folder")` or `path.join(__dirname, "app", "folder")`.
106
104
107
105
### Vim
108
106
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.
0 commit comments