module.exports = (grunt, options) ->
  return {
    options:
      baseUrl: '<%= build %>/js'
      exclude: ['coffee-script']
      stubModules: ['cs/cs']
      mainConfigFile: '<%= build %>/js/app/config.js'
      optimize: 'uglify2'
      generateSourceMaps: true
      preserveLicenseComments: false
      findNestedDependencies: true
      useSourceUrl: true
    app:
      options:
        include: ['app/main']
        out: '<%= build %>/js/bundle.js'
    embed:
      options:
        include: ['app/main-embed']
        out: '<%= build %>/js/embed.js'
  }

module.exports = (grunt, options) ->
  return {
    options:
      baseUrl: '<%= build %>/js'
      exclude: ['coffee-script']
      stubModules: ['cs/cs']
      mainConfigFile: '<%= build %>/js/app/config.js'
      optimize: 'uglify2'
      optimizeAllPluginResources: true
      generateSourceMaps: true
      preserveLicenseComments: false
      findNestedDependencies: true
      useSourceUrl: false
    app:
      options:
        include: ['app/main']
        out: '<%= build %>/js/bundle.js'
    embed:
      options:
        include: ['app/main-embed']
        out: '<%= build %>/js/embed.js'
  }

Make source maps work in Sentry.
Make source maps work in Sentry.

Sentry can't seem to handle the unminified,
concatenated eval'd version of the bundle.
Minification loses the js -> coffee mapping
step, but the js stack traces and sources
are clear enough.
