Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:57:30+00:00 2026-06-07T01:57:30+00:00

Update: For anyone interested in using Brunch with AngularJS I’ve put together a seed

  • 0

Update:
For anyone interested in using Brunch with AngularJS I’ve put together a seed project angular-brunch-seed

I’m using Brunch with AngularJS. AngularJS provides a module system so the need for importing file using commonJS / AMD is redundant. Is it possible to disable this feature for files in the /app directory? Essentially I would like it to compile files unaltered like it does for the /vendor directory.

So the preferred out come would be:

  joinTo:
    'js/app.js': /^app/
    'js/vendor.js': /^vendor/

With both js/app.js and js/vender.js containing compile files from each respective folder, but neither wrapped.

Does anyone have any ideas?

UPDATE
The syntax has changed from when @jcruz answer. Here’s the way to do this now.

In the end I went with a modified version of @jcruz answer.

exports.config =
  modules:
    definition: false
    wrapper: (path, data) ->
      """
(function() {
  'use strict';
  #{data}
}).call(this);\n\n
      """
  files:
    javascripts:
      defaultExtension: 'coffee'
      joinTo:
        'js/app.js': /^app/
        'js/vendor.js': /^vendor/

By default the “raw” wrapper does not include coffeescript’s standard wrapper. By setting jsWrapper to:

wrapper: (path, data) ->
  """
(function() {
  'use strict';
  #{data}
}).call(this);
  """

files will be wrapped as expected.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:57:32+00:00Added an answer on June 7, 2026 at 1:57 am

    The ability to disable the module wrapping was just recently added in https://github.com/brunch/brunch/commit/ec158cffd1b66d5db2093cf766000673aa0dd3a5

    I dont believe the release w/ these features is on npm yet but you could just re-install brunch from the github repo

    Once you do that Brunch, set jsWrapper to ‘raw’ in your config.coffee

    Something like this…

    exports.config =
      jsWrapper: 'raw'
      files:
        javascripts:
          defaultExtension: 'js'
          joinTo:
            'javascripts/app.js': /^app/
            'javascripts/vendor.js': /^vendor/
    

    ‘brunch b’ and the wrapping code should disappear

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know if the LIMIT and OFFSET clause work when using the UPDATE
Does anyone know what the esiest way to update the entity model after adding/deleting
Has anyone tried out working with the Delete and update command of SPDataSource used
Anyone know how to do an update with a join (i.e. update on two
Does anyone have an idea of how to capture logs continuously and update a
Can anyone tell me, Some modify or update in my android program, Is any
can anyone help? I have an issue with linq2sql and trying to Attach (update)
UPDATE: I have somewhat resolved the issue. Just in case if anyone runs in
I need to update jquery1.3.2 to jquery1.4 (in Asp.net MVC). Please can anyone tell
My code does not update the thread field. It is null. Anyone have any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.