Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 17 02:20
    trusktr closed #1727
  • Nov 17 02:19
    trusktr opened #1727
  • Nov 17 00:15
    behrangsa opened #1726
  • Nov 12 18:26
    nwittwer edited #1717
  • Nov 10 17:29
    nitinbansal1989 opened #1725
  • Nov 08 17:18
    madebyreformat opened #1724
  • Nov 07 04:13
    DRSDavidSoft edited #1674
  • Nov 02 16:35
    dependabot[bot] labeled #1723
  • Nov 02 16:35
    dependabot[bot] opened #1723
  • Nov 02 16:35
    dependabot[bot] labeled #77
  • Nov 02 16:35
    dependabot[bot] opened #77
  • Oct 25 13:09
    SkrupSulten closed #1722
  • Oct 25 11:18
    SkrupSulten opened #1722
  • Oct 22 04:22
    dependabot[bot] labeled #60
  • Oct 22 04:22
    dependabot[bot] opened #60
  • Oct 15 02:27
    danyj opened #1721
  • Oct 09 20:13
    unformatt edited #1720
  • Oct 04 14:45
    unformatt edited #1720
  • Oct 03 09:27
    leung85 closed #1295
  • Oct 02 16:39
    unformatt edited #1720
erikbaan
@erikbaan
Hi. I have a setup with gulp + browsersync (proxy) + apache / localhost (and PHP/symfony app)
browsersync seems to be initiating correctly, and i can open the url in safari
but in firefox + chrome, the request is stuck loading.. infinitely
this is on macos. Anyone an idea how to find/fix the problem ?
Ghost
@ghost~54db391f15522ed4b3dbe23d
is there a way to check if the cors is enabled?
erikbaan
@erikbaan
in my logs, i can see the request to my PHP app is received successfully, and the response is generated correctly. but never the less firefox/chrome are stuck loading forever
Ghost
@ghost~54db391f15522ed4b3dbe23d
anyone?
Joshua Austill
@jlaustill
I'm curious about this as well, my entire site uses CORS for the api(it lives on a different server/domain) and I have had zero problems using browser-sync. So if it's going to bite me for some reason it would be good to know ahead of time :)
Marko Bolliger
@cannap
Hi i try to debug my website with weinre when i connect with my phone
i cant see the phone as target
Ghost
@ghost~54db391f15522ed4b3dbe23d
Marko Bolliger
@cannap
i cant see me my phone
hm i changed
 proxy: {
    target: 'http://localhost:8080/starter/',
    middleware: function (req, res, next) {
      res.setHeader('Access-Control-Allow-Origin', '*')
      next()
    },
  },

  ui: {
    weinre: {
      port: 9000
    }
  },
  host: '192.168.1.33'
ah this was not for me lol
Marko Bolliger
@cannap
omg my browser sync just stopped working oO
also it works but i cant connect any more via port 3000
Joshua Austill
@jlaustill
did you make any html changes?
Marko Bolliger
@cannap

[BS] [UI] [weinre]: starting server at http://192.168.1.33:9000
_http_client.js:305
debug('SOCKET ERROR:', err.message, err.stack);
^

TypeError: Cannot read property 'displayName' of undefined

this error is also new
since today
no
i have body tag
Joshua Austill
@jlaustill
hmm, I've not seen that one before
Marko Bolliger
@cannap
i use wordpress but i dont know why it just stopped working
before 20min everythign was finde then i enabled
weinre and boom broken
but this is not the first time i enable weinre
yesterday everything was fine
Andrius Solopovas
@asolopovas
Hi guys, recepies do not work with webpack2 does anyone had got it working?
arnava17
@arnava17
Hi. I am using angular 2 seed project from angular official site. I need to disable browser-sync in that project. How can I do it?
nusu
@nusu
hey fellas I'm having little bit struggle with connecting localhost via my iphone
can someone help me
my firewall is off
Aman Sharma
@amanwebdev
having trouble! can't access this angular 2 browser sync app from outside ?
Onur Alp Baklaci
@onuralpb
I am wondering too. But is speed okay?
QMYT
@brokleen
hello ?
harrystark
@harrystark
why does browsers request for favicon.ico?
codeyad
@codeyad
Hi everybody, im facing a problem using Angular 1 and gulp with browsersync, if most than one user have the site open and one of them change to another state the other user page will change as well, how can i fix that? ghostmode: false seems not to work
codeyad
@codeyad
can someone please give me a hand with this?
S-Amin
@S-Amin
Hi guys, I notice that browser-sync just injects css files not js files while webpack-dev-server injects js files and does not refresh the page. It seems that hot module replacement doesn't work in browser-sync. Is there any way to fix that?
kent-gova
@kent-gova
Hi guys, I would like to know if its possible in browser sync that when you do npm start it will pop up different browsers with different browser width? so that I will no longer resize the browser manually? Hope you guys have thought on this?
S-Amin
@S-Amin
@kent-gova I'm not expert but on top of my head, once to run browser-sync leave it to be running then open several browser and resize them and never stop the server so they all are going to be sync. why to stop the server and run it again??
kent-gova
@kent-gova
@S-Amin It's not actually meant for stop and re-run server. It's for the convenience of not resizing the browser and only to have all the desired different browser size needed considering of not syncing to mobile emulators but only browsers.
Carlos Eduardo Villalta
@CarlosV89
Hey guys, I have an express project that runs an angular fe that is built with webpack, right now I have a task that builds assets with webpack-stream to /dist and reload the server with nodemon-gulp, now I want to integrate browser sync for browser reloads but Im having a hard time understanding how to do that
In the gulp-nodemon documentation, I find this:
Using gulp-nodemon with browser-sync

Some people want to use browser-sync. That's totally fine, just start browser sync 
in the same task as nodemon({}) and use gulp-nodemon's 
.on('start', function () {}) to trigger browser-sync. Don't use the
.on('restart') event because it will fire before your app is up and running.
But I don’t know how to trigger it
Carlos Eduardo Villalta
@CarlosV89
I have something like
gulp.task('serve:watch', ['nodemon'],() => {
    browserSync.init(null, {
        proxy: "http://localhost:3000",
        files: ["dist/**/*.*"],
        browser: "google chrome",
        port: 7000,
    });
});
// Configure gulp-nodemon
// This watches the files belonging to the app for changes
// and restarts the server whenever a change is detected
gulp.task('nodemon', ['webpack-build'], cb => {
  let started = false;
  return nodemon({
    script: 'server.js',
    ext: 'js html pug ts scss',
    env: {'NODE_ENV': 'development' },
    tasks: ['webpack-build'],
    ignore: 'dist'
  })
  .on('start', () => {
    if (!started) {
      cb();
      started = true;
      browserSync.reload();
    }
  });
});
It appears to be reloading before the build is finished