about summary refs log tree commit diff
path: root/app.json
diff options
context:
space:
mode:
authoraschmitz <andy.schmitz@gmail.com>2017-10-04 02:52:11 -0500
committerEugen Rochko <eugen@zeonfederated.com>2017-10-04 09:52:11 +0200
commit2076c557c907e118dbafc92170fc9fb0cba597df (patch)
tree16163f9e749e19ea8710ce54a0634a7a8e68ec31 /app.json
parentd40c9140e8c02c63b675d9c9a2a44ee20c5a9f31 (diff)
Configure webpack to poll for changes in development (#5040)
* Configure webpack to poll for changes in development

Vagrant on Linux/macOS hosts shared files via NFS, which doens't
support inotify-based watching of files. This tweak makes webpack
check for changes every second, and rebuild if necessary. This
removes the need to restart Foreman every time a frontend file
changes. Note that rebuilding is still a relatively lengthy
process.

The polling frequency can be changed to taste.

* Only poll in Vagrant

This tests for the presence of the VAGRANT environment variable to
determine whether or not we're in Vagrant. It is set in .env.vagrant,
which is set up to be included in the Vagrantfile.
Diffstat (limited to 'app.json')
0 files changed, 0 insertions, 0 deletions