- Step up your environment for live editing.
- Live editing will cause any connected browser to automatically reload if you change any file.
-
- Install browser-sync.
-
- Create a browser-sync object and initialize the server.
var browserSync = require('browser-sync').create();
browserSync.init({
server: "./"
});
browserSync.stream();
-
- Run gulp in Terminal, see how browser opens with the page open.