/**
 * Grunt-Contrib-RequireJS
 * @description Optimize RequireJS projects using r.js.
 * @docs https://github.com/gruntjs/grunt-contrib-requirejs
*/

var config = require("../Config");

module.exports = {
  deploy: {
    options: {
      mainConfigFile: config.JavaScripts.devDir + "/" + config.JavaScripts.requireJS.config + ".js",
      include: [config.JavaScripts.requireJS.libSourceFile, config.JavaScripts.requireJS.config],
      out: config.JavaScripts.requireJS.compileDistFile,

      // Wrap in an IIFE
			wrap: true,

			// Generate source maps for the build.
			generateSourceMaps: true,

			// Do not preserve license comments when working with source maps, incompatible.
			preserveLicenseComments: false,

			// Uglify the build with 'uglify2'.
			optimize: 'uglify2'
    }
  }
};


/**
 * Grunt-Contrib-RequireJS
 * @description Optimize RequireJS projects using r.js.
 * @docs https://github.com/gruntjs/grunt-contrib-requirejs
*/

var config = require("../Config");

module.exports = {
	deploy: {
		options: {
			mainConfigFile: config.JavaScripts.paths.devDir + "/" + config.JavaScripts.requireJS.config + ".js",
			include: [config.JavaScripts.requireJS.libSourceFile, config.JavaScripts.requireJS.config],
			out: config.JavaScripts.requireJS.compileDistFile,

			// Wrap in an IIFE
			wrap: true,

			// Generate source maps for the build.
			generateSourceMaps: true,

			// Do not preserve license comments when working with source maps, incompatible.
			preserveLicenseComments: false,

			// Uglify the build with 'uglify2'.
			optimize: 'uglify2',
		}
	}
};


Fix the path pointing to the main config file inside the r.js task
[BUGFIX] Fix the path pointing to the main config file inside the r.js task
