Keep multiple browsers & devices in sync when building websites. http://browsersync.io
[BS] [UI] [weinre]: starting server at http://192.168.1.33:9000
_http_client.js:305
debug('SOCKET ERROR:', err.message, err.stack);
^
TypeError: Cannot read property 'displayName' of undefined
Using gulp-nodemon with browser-sync
Some people want to use browser-sync. That's totally fine, just start browser sync
in the same task as nodemon({}) and use gulp-nodemon's
.on('start', function () {}) to trigger browser-sync. Don't use the
.on('restart') event because it will fire before your app is up and running.
gulp.task('serve:watch', ['nodemon'],() => {
browserSync.init(null, {
proxy: "http://localhost:3000",
files: ["dist/**/*.*"],
browser: "google chrome",
port: 7000,
});
});
// Configure gulp-nodemon
// This watches the files belonging to the app for changes
// and restarts the server whenever a change is detected
gulp.task('nodemon', ['webpack-build'], cb => {
let started = false;
return nodemon({
script: 'server.js',
ext: 'js html pug ts scss',
env: {'NODE_ENV': 'development' },
tasks: ['webpack-build'],
ignore: 'dist'
})
.on('start', () => {
if (!started) {
cb();
started = true;
browserSync.reload();
}
});
});
42/browser-sync,["input:text", {tagName: "INPUT", index: 0, value: "asdf", url: "/vNext/donor-care/donor/list"}]
0
:
"input:text"
1
:
{tagName: "INPUT", index: 0, value: "asdf", url: "/vNext/donor-care/donor/list"}
https: true
option