Fortunately, out-of-box SXA already has such hidden feature. I said it’s hidden, as it’s not been mentioned in official documentation, but it’s there.
How to enable auto-synchronizer?
- Open /Website/App_Config/Include/Feature folder and remove .disabled from z.SPE.Sync.Enabler.Gulp.config.disabled file;
- Update config file for Gulp tasks. **ThemeRoot/gulp/config.js** file as shown below.
3. Run gulp