These are chat archives for brunch/brunch

13th
Sep 2016
Rafael
@RowiDont
Sep 13 2016 15:14
I was having an issue earlier today, where a brunch-config worked fine on my computer, and the brunch serve served the correct files, but on another dev's computer, the brunch server didn't seem to know where to find the requested assets. I'll post the brunch-config, and maybe you guys can tell me what the problem was?
exports.config = {
  hot: true,

  paths: {
    watched: ['frontend'],
    public: 'app'
  },

  server: {
    indexPath: 'index.html'
  },

  files: {
    javascripts: { joinTo: 'assets/javascripts/app.js' },
    stylesheets: { joinTo: 'assets/stylesheets/app.css' }
  },

  plugins: {
    babel: { presets: ['es2015', 'react'] }
  }
};
the thing that made it work for him was changing public to 'app/assets', and removing 'assets' from the joinTo string.
Very very new to brunch, and while I love how simple it is, I'd love to understand why this could cause an issue.
Mauro Oviedo
@moviedo
Sep 13 2016 15:20
@RowiDont are you sure ur both using the same version of brunch globally and locally, as well as the same npm and node versions?
Rafael
@RowiDont
Sep 13 2016 15:21
We wiped everything in node_modules on my and his folders, and we're using nvm to make sure we all use the same node version.
Mauro Oviedo
@moviedo
Sep 13 2016 15:21
that's odd then
and what version of brunch are u using?
2.8.x ?
Rafael
@RowiDont
Sep 13 2016 15:23
I think it's 2.8.2
it is 2.8.8
whoops
2.8.2
I was also hoping someone could explain the difference between the joinTo config property, and the entryPoint?
Mauro Oviedo
@moviedo
Sep 13 2016 15:27
@RowiDont i haven't used entryPoint myself as of yet, but it seems it's a way of creating more granularity in the output files
Rafael
@RowiDont
Sep 13 2016 15:27
similar maybe to how people create multiple bundles with webpack?
Mauro Oviedo
@moviedo
Sep 13 2016 15:28
Resembles joinTo but allows to included only the files you need.
that's what the docs say
Ryan Sobol
@ryansobol
Sep 13 2016 15:54
@RowiDont brunch config looks good. Any chance you can link the project repo?
Rafael
@RowiDont
Sep 13 2016 17:02
unfortunately not possible (company stuff). I'm gonna chalk it up to some cache issue or temp file? I honestly can't think of anything different since we're even using shrinkwrap and he and I cleared everything and then re-ran npm install