-
Notifications
You must be signed in to change notification settings - Fork 752
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
unable to change port #972
Comments
port is not a child property of the server option. (I know that's not intuitive, I've addressed this in V3) change to this and you're good. import {create as bsCreate} from 'browser-sync';
const browserSync = bsCreate();
gulp.task('browser-sync', () => {
browserSync.init({
server: {
baseDir: "./build"
},
port: 8081
});
}); |
I use this and it's still defaulting to 3001.
|
I'm meeting same problem |
I too have the same issue, I guess browserSync does not allows to use the same port which we are using in our server/app.js file |
Hi,
I am using gulp + browsersync + babel, everything seems to be running ok, except when I pass in a custom port number browser-sync does not seem to be using it.
Here is a snippet
It just defaults to 3000, to get round this temporarily I have gone in and change the default-config.js but this is not ideal.
Matt
The text was updated successfully, but these errors were encountered: