gruntjs / grunt-contrib-requirejs

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

Build script does not run main script #39

Closed binarykitchen closed 10 years ago

binarykitchen commented 11 years ago

I have another gotcha: With the following configuration in my Gruntfile.coffee I am unable to run the main script in the browser:

    requirejs:
      compile:
        options:
          baseUrl: "client/scripts/compiled"
          name: 'main'
          mainConfigFile: "client/scripts/compiled/config/require.config.js"
          out: "server/public/j/main.js"
          useStrict: true
          optimize: 'none'
          preserveLicenseComments: false

server/public/j/main.js has all the source code but does not run anything. At the bottom I see this line which makes no sense:

define("main", function(){});

Any clues?