gruntjs / grunt-contrib-requirejs

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

Any way of compiling more than one backbone app with this grunt tool? #61

Closed vinitkumar closed 10 years ago

vinitkumar commented 10 years ago

I have three different backbone apps that need to be compiled with r.js.

 requirejs: {
  compile: {
    options: {
      baseUrl: "path/to/base",
      mainConfigFile: "path/to/config.js",
      name: "path/to/almond", // assumes a production build using almond
      out: "path/to/optimized.js"
    }
  }
}

It there any way to doing it for multiple apps? Can an array of app's options be passed so that more than one backbone app gets compiled with grunt?

sindresorhus commented 10 years ago

Please keep question to StackOverflow.

But yeah, use targets eg compile here. Read the docs ;)