Answer the question
In order to leave comments, you need to log in
BrowserSync - proxy not working (OpenServer)?
Install elementary gulp with one package (BrowserSync) to run the OpenServer site.
var gulp = require('gulp'),
browserSync = require('browser-sync').create();
gulp.task('browser-sync', function() {
browserSync.init({
proxy: "site.local",
browser: "chrome",
notify: false,
})
});
function bsReload(done) { browserSync.reload(); done(); };
gulp.task('default', gulp.parallel('browser-sync'));
[19:39:41] Using gulpfile /mnt/e/project/site/local/gulpfile.js
[19:39:41] Starting 'default'...
[19:39:41] Starting 'browser-sync'...
[Browsersync] Proxying: http://site.local
[Browsersync] Access URLs:
------------------------------------
Local: http://localhost:3002
External: http://192.168.1.6:3002
------------------------------------
UI: http://localhost:3003
UI External: http://localhost:3003
------------------------------------
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