Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BrowserSync/ gulp-browser-sync / browser-sync-spa and Safari in Iphone 4s #75

Open
cachaito opened this issue Apr 10, 2017 · 0 comments

Comments

@cachaito
Copy link

cachaito commented Apr 10, 2017

Hello! I got curious situation with debugging my Angular code on page through BrowserSync on iPhone. BrowserSync is connecting successfully to my device, scrolling is fully synchronized on both computer/ iPhone but on the iPhone there is only empty page. I've checked markup and it seems that all styles and *.js files are loaded, but there is empty ui-view :-(

I got working browser-sync-spa middleware (without it is the same) and configured my proxy (there is running backend on localhost:80) as:

var proxyMiddleware = require('http-proxy-middleware');
var proxy = proxyMiddleware('/api', {target: 'localhost:8080/api'});

browserSync({
    open: true,
    port: 8080,
    server: {
        baseDir: "./",
        middleware: [proxy]
    }
});

Does anybody solved iPhone debugging problem?
Regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant