ionic-cli: --livereload not working in rc0
Hi, I’m using rc0 with the new ionic-app-scripts build setup, and ionic run <platform> --livereload isn’t working with the starter projects for either android or ios. Or, more precisely, it’s ‘working’ in the sense that it’s detecting changes in the www folder, but there’s nothing detecting changes in the source files that ultimately triggers changes in www.
I can get it to work by opening a second terminal and running npm run watch, which invokes the new ionic-app-scripts watch command. It’ll produce two EPERM errors in the first ionic run terminal, but then things settle down after the initial rebuild, and live-reloading works as expected after that, more or less.
I guess my question is, is this a bug in the livereload flag (it seems like it is), or is the expected behavior (minus the EPERM FSEvent errors), and the new workflow is to use the watch npm script in a separate terminal like this?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 7
- Comments: 15 (3 by maintainers)
Thanks, @jthoms1! Watch server works now on html and js files, but not on the scss files (even after running ionic setup sass). To make it work, i had to launch the watch rule in a shell separately. Did i miss something ?