These are chat archives for brunch/brunch

19th
Jan 2016
Vitaliy Ribachenko
@VitaliyR
Jan 19 2016 13:36

Hi there! I have a question related to config - and can't find a solution for it:

    javascripts:
      joinTo:
        'js/vendor.js': [
            /^node_modules/
            ‘node_modules/awesome_modules/my.js’
          ]

that my.js just don't work to join into vendor.js.
Where am I wrong?

Matt
@matthopson
Jan 19 2016 14:15
99% of the time :point_up: is not something you'd really want to do, in general.
Vitaliy Ribachenko
@VitaliyR
Jan 19 2016 14:15
Em... okay. But how can I do it?
why/where/what is the problem in?
Matt
@matthopson
Jan 19 2016 14:20
```coffeescript
javascripts:
joinTo:
'js/vendor.js': /^vendor/
So generally youd do something like that
Vitaliy Ribachenko
@VitaliyR
Jan 19 2016 14:20
But it is not inside vendor
it is inside node_modules actually
Matt
@matthopson
Jan 19 2016 14:22
Yeah I get that - I'm just trying to lay some groundwork.
I'm guessing you are using a module you need to run client-side?
Vitaliy Ribachenko
@VitaliyR
Jan 19 2016 14:24
Yes, it is actually an css framework from which one I'm taking only parts which I need (dummy optimization, but it is - I need only 10kb from 145kb) - and only one JS
This framework exists also in bower, but we're not using it
Matt
@matthopson
Jan 19 2016 14:24
I've not considered using brunch for something like this (would be curious to know if anyone else has).
Vitaliy Ribachenko
@VitaliyR
Jan 19 2016 14:25
Okay, then need to download & debug it how does it is using this anymatch sets, because it really should work
At least, if I'm following anymatch docs
Matt
@matthopson
Jan 19 2016 14:26
This is something browserify seeks to accomplish.
You
You can package up node modules as client dependencies with it.
If you're just trying to grab a single js file from it, directly extracting it and dumping into your vendor folder sounds more reasonable.