Skip to content

Commit d6ad8f3

Browse files
committed
strip http(s) from domain option passed into 'host'
1 parent a89f140 commit d6ad8f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulp_tasks/browser-sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = (gulp, config, tasks) => {
3333
if (config.browserSync.domain) {
3434
Object.assign(options, {
3535
proxy: config.browserSync.domain,
36-
host: config.browserSync.domain,
36+
host: config.browserSync.domain.replace(/(^\w+:|^)\/\//, ''),
3737
startPath: config.browserSync.startPath
3838
});
3939

0 commit comments

Comments
 (0)