Skip to content

Instantly share code, notes, and snippets.

@Integralist
Last active May 31, 2025 20:18
Show Gist options
  • 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 #js
/*
* 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