Skip to content

Instantly share code, notes, and snippets.

@markmarkoh
Created June 11, 2012 21:33
Show Gist options
  • Save markmarkoh/2912877 to your computer and use it in GitHub Desktop.
Save markmarkoh/2912877 to your computer and use it in GitHub Desktop.
multi profile build output
modules: [{
name: "foo/bar/bop",
override: {
pragmas: {
out: "bop-build.js"
}
}
}, {
name: "other",
override: {
pragmas: {
out: "other-build.js"
}
}
}]
@jrburke
Copy link

jrburke commented Jun 11, 2012

the idea is that you set a baseUrl and and dir: and it will output the built modules in there:

baseUrl: 'path/to/src/baseUrl',
dir: 'built-dir',
modules: [{
       name: "foo/bar/bop",
   }, {
       name: "other"
       }
   }]

then there will be a built-dir/other.js and a built-dir/foo/bar/bop.js file, as well as all the other files in the basesUrl. If you do not want the other files, then try doing multiple single file builds driven either by a shell script or a node script like this:

https://gist.github.com/1509135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment