How can I tell Brunch not to concatenate javascrip

2019-06-01 07:12发布

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/

标签: brunch
2条回答
何必那么认真
2楼-- · 2019-06-01 07:55

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

查看更多
劫难
3楼-- · 2019-06-01 07:56
  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.

查看更多
登录 后发表回答