How can I tell Brunch not to concatenate javascript files?

点点圈 提交于 2019-12-08 07:27:09

问题


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/

回答1:


  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.




回答2:


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



来源:https://stackoverflow.com/questions/30896064/how-can-i-tell-brunch-not-to-concatenate-javascript-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!