Sourcemaps can be used like described in the requirejs docs
Note: Make sure to set the optimize property to ´uglify2´!
requirejs: {
mysourcemapped: {
options: {
baseUrl: 'my/project',
name: 'project',
out: 'dist/main-sourcemapped.js',
optimize: 'uglify2',
generateSourceMaps: true,
preserveLicenseComments: false,
useSourceUrl: true
}
},