Skip to content

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

@cachaito

Description

@cachaito

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions