ocombe / browser-sync-brunch

Adds BrowserSync http://browsersync.io/ support to brunch for automatic browser reloading and much more !
MIT License
26 stars 13 forks source link

Weird Cannot GET/ Error #15

Open brentbrinkley opened 7 years ago

brentbrinkley commented 7 years ago

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