I think I was missing a simple name: 'main'
in the rjs configuration of my Gruntfile, so it should look like this:
rjs: {
// no minification, is done by the min task
optimize: 'none',
baseUrl: './scripts',
wrap: true,
name: 'main'
},
This correctly works with yeoman server
and yeoman build
.