Created
October 3, 2011 11:12
-
-
Save Integralist/1258903 to your computer and use it in GitHub Desktop.
RequireJs Build Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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