Webpack will pick up changes from vim and recompile source
Webpack does not pick up changes. It picks up changes from Atom and Nano though.
Docker for Mac: version: mac-v1.12.0-beta16.2 OS X: version 10.11.4 (build: 15E65) logs: /tmp/20160621-114716.tar.gz failure: No error was detected [OK] docker-cli [OK] app [OK] menubar [OK] virtualization [OK] system [OK] osxfs [OK] db [OK] slirp [OK] moby-console [OK] logs [OK] vmnetd [OK] env [OK] moby [OK] driver.amd64-linux
Steps to reproduce the behavior
- Set up a webpack 2.0 project, and run the webpack dev server inside a container with mounting between host and container
- Open up vim and make a file change – only sometimes will webpack rebuild, until it doesn’t and then it doesn’t matter which editor you use, it wont rebuild until the container is restarted.
From the docker irc room:
3:01 PM gojira_: you are totally right… I tried
inotifywait -m FILE, then changed & wrote the file in gedit and Vim. Vim does OPEN, CLOSE_NOWRITE,CLOSE, MOVE_SELF, ATTRIB, DELETE_SELF. gedit did OPEN, CLOSE_WRITE,CLOSE, ATTRIB
When running webpack dev server on the host, it appears to work as expected.
Work around: Use polling