Skip to content

Instantly share code, notes, and snippets.

@Integralist
Created October 3, 2011 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Integralist/1258903 to your computer and use it in GitHub Desktop.
Save Integralist/1258903 to your computer and use it in GitHub Desktop.
RequireJs Build Script
/*
* http://requirejs.org/docs/optimization.html
*
* Use NodeJs to execute the r.js optimization script on this build script
* node r.js -o app.build.js
*
* See: https://github.com/jrburke/r.js/blob/master/build/example.build.js for an example build script
*
* If you specify just the name (with no includes/excludes) then all modules are combined into the "main" file.
* You can include/exclude specific modules though if needed
*
* You can also set optimize: "none" (or more specific uglifyjs settings) if you need to.
*/
({
appDir: "../../",
baseUrl: "Assets/Scripts",
dir: "../../project-build",
modules: [
{
name: "main"
/*
include: ["App/people"],
exclude: ["Utils/random"]
*/
}
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment