gruntjs / grunt-contrib-requirejs

Optimize RequireJS projects using r.js.
http://gruntjs.com/
MIT License
504 stars 105 forks source link

Usage Example Fail #52

Closed ghost closed 10 years ago

ghost commented 10 years ago

This usage example here does not work

requirejs: {
  compile: {
    options: {
      baseUrl: "path/to/base",
      mainConfigFile: "path/to/config.js",
      out: "path/to/optimized.js"
    }
  }
}

You get Error: Missing either a "name", "include" or "modules" option every time.

zsitro commented 10 years ago

Same here. A more verbose manual would be nice.

herom commented 10 years ago

yes, same here - does anybody know how to "fix" this?

tkellen commented 10 years ago

I've updated the README with an example for how to use almond on a production build.

Here is a decent example of an app that does this: http://github.com/tkellen/streetsmap

This task is a thin wrapper that calls the RequireJS optimizer. More documentation should be sought on their website.