-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Already have a build.js file #41
Comments
You can read in the file and add it into your grunt config like this: var buildOptionsFile = grunt.file.read( buildOptionsPath );
var buildOptions = eval( buildOptionsFile );
// ... Adjust path settings appDir, baseUrl, and mainConfigFile if needed
gruntConfig.requirejs = {
compile : {
options : buildOptions
}
}; Just make sure you do this before calling |
This is sweet. Maybe link this from the README? |
There is no need to do this incantation, r.js has a setting for specifying a build file: |
Right, but if you're coming to |
Which is no biggie, but all copy/pasting is annoying, especially when it might relate to build/deploy. |
build.js files should be JSON wrapped in parentheses and therefore cannot contain the Therefore |
If I already have a build.js file, is it possible to point to that file as the configuration rather than setting it up in the Gruntfile. Currently I'm using a shell operation and simply doing -o.
The text was updated successfully, but these errors were encountered: