Ionic2 watch src folder for changes

I’m trying to automate the recompile/build steps as much as possible.
AFAIK there are 2 tools that achieve this :

  • npm run watch --dev watches for changes in /src and re-writes the bundle in /www. This is the Webpack part of the process
  • ionic emulate ios --livereload watches for changes in /www and re-writes the /platform folder. This is the Cordova part of the process

I’m looking for a way to combine these two steps into one. Right now I’m resorting to opening two terminals to run the 2 processes simulatneously but this feels wrong.

I’d like to be able to change the source files and see the result in the emulator, how do you achieve this ?


It’s a known issue: driftyco/ionic-cli#1425