Last active
May 31, 2025 20:18
-
-
Save Integralist/1258903 to your computer and use it in GitHub Desktop.
RequireJs Build Script #js
This file contains hidden or 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