How can I tell Brunch not to concatenate javascript files?

622 views Asked by At

Does anyone know how to configure Brunch not to concatenate javascript files in the local build?

I want the javascript files copied straight over so that I do not have one large javascript file when debugging.

Here's my current brunch-config.coffee file:

exports.config =
  conventions: ignored: /.+\.spec\.js/
  files:
    javascripts:
      joinTo:
        'js/app.js': /^app/
        'js/vendor.js': /^(vendor|bower_components)/
    stylesheets:
      joinTo: 
        'css/common.css': /^app/
    templates:
      joinTo:
        'js/templates.js': /^app/
2

There are 2 answers

0
Brent Engwall On BEST ANSWER

Per Paul's comment, it is not possible yet to not combine js files when building locally. Thanks Paul

4
Paul Miller On
  1. Place your javascript files into app/assets
  2. Remove javascripts and templates from your brunch config.

That should just copy them over as-is.