Answer the question
In order to leave comments, you need to log in
How to register the start of the server from a specific page of the site in browserSync?
When working on a site, I use XAMPP to run the server.
In the XAMPP setting in the file \xampp\apache\conf\extra\httpd-vhosts.conf
Specified
<VirtualHost *:80>
DocumentRoot "D:/xampp/htdocs"
ServerName localhost
ServerAlias localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/xampp/htdocs/my-site/src"
ServerName my-site
ServerAlias www.my-site
</VirtualHost>
gulp.task('browserSync', function(){
return browserSync.init({
proxy: "my-site/"
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question