Giter Club home page Giter Club logo

browser-sync-brunch's People

Contributors

m4dz avatar mmwtsn avatar ocombe avatar sobolevn avatar tdd avatar webdif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

browser-sync-brunch's Issues

Missing file browsersync.2.18.13.js

I can't work out if this is actually normal behaviour.

I am using a slightly unusual setup but nothing complicated. Basically, I have Brunch, a few plugins (including browser-sync!), and I'm using vibe.d as a server (that's the unusual bit). Browsersync is set up in proxy mode and seems happy. When I open the browser window, I get a 'browser-sync connected' message and all watched files update immediately in the browser.

But I am getting requests hitting the server for the file ;
localhost:3000/browser-sync/browser-sync-client.2.18.13.js
And this file doesn't exist, resulting in a 404 (reported in the browser console and in the server log).
The request for this file is coming from the script 'browser-sync-injector.js', according to my browser console.

I notice that browsersync in the browser also requests the file ;
localhost:3000/browser-sync/browser-sync-client.js?v=2.18.13
But this request doesn't even reach my server - I presume it is intercepted and dealt with by the browsersync proxy? In fact, this file is served to the browser even if I shutdown the vibe.d server so the only place it can be coming from is the proxy server.

Are those two files that are being requested two alternative ways of requesting the same file, one of which will work, and the other is supposed to fail?

The only browser-sync feature that doesn't seem to be working here is synced scrolling across connected browsers (which doesn't really bother me much). I have no idea if this is linked to the above missing file.

So, is this normal or should I fix it?

scriptPath option

Hi ! I have a issue with the scriptPath option. It seems to be not apply.

plugins:
browserSync:
port: 81
scriptPath: "localhost:1281/browser-sync/browser-sync-client.2.1.6.js"

but when i reach localhost:80 it tries to get the browser-sync-client from localhost:81 which is ok according to port option but i need to retrieve the script from a other port because i'm on a virtual server address form the internet with port prefix '12' so when i want to reach port 81 form the internet i need to address the port 1281. I hope this is clear if it's not feel free to ask.

Thanks.

Weird Cannot GET/ Error

Browsersync only seems to work when I run brunch watch -s the weird thing is it actually attempts to use port 3334 but actually works on port 3333. If try to go to port 3334 I see Cannot GET / .

When I run brunch watch without the server flag when I go to port 3333 I also see Cannot GET / I've included my brunch-config and the debug log. Let me know if you need more info.

module.exports = {
  config: {
    paths: {
      watched: ["app"]
    },

    files: {
      javascripts: {
        joinTo: {
          'js/vendor.js': /^(?!app)/,
          'js/app.js': /^app/
        }
      },
      stylesheets: {
        joinTo: "css/app.css"
      }
    },

    plugins: {

      elmBrunch: {
        mainModules: ["app/elm/Main.elm"],
        outputFolder: "public/js/",
        parameters: ['--warn']
      },
      sass: {
        mode: "native",
        options: {
          includePaths: [
            'node_modules/bulma'
          ]
        }
      },
      babel: {
        presets: ['es2015'],
        ignore: [
          // /^node_modules/,
          /^elm/
        ]
      },
      browserSync: {
          port: 3333,
          logLevel: "debug",
          // open: "local",
          notify: false
      },

    }
  }
};

And here's the debug log
screen shot 2017-07-08 at 4 21 04 pm

Docs Change

Might want to change the --save npm install option to --save-dev, thanks for this contribution!

Doesn't work with workers enabled

When the brunch workers are enabled, it doesn't work because multiple instances of BrowserSync are launched on different ports and the changes are not pushed to the correct websocket.

External URL

With the default config, I can access the BrowserSync UI via localhost:3001 && ipaddress:3001 on my mobile device. I cannot load the default port :3333 on my mobile device. Any suggestions?

Reload isn't always triggered

When you edit files that can be injected (css for example) and other files at the same time (js, html), the browser is not always reloaded (only the css is injected)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.