diff --git a/Gruntfile.coffee b/Gruntfile.coffee index b6c82df1..c23236f8 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -277,6 +277,7 @@ module.exports = (grunt)-> require('lodash-cli')([ "include=#{include.join(',')}", "exports=none", + "iife=var lodash = _ = (function() {%output%; \nreturn lodash;\n}.call(this));", "--output", "build/lodash-shrinkwrap.js", "--development"] , (data)-> diff --git a/Gruntfile.js b/Gruntfile.js index 2bc8d422..f9b227d2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -243,7 +243,7 @@ include.push(func.slice(2)); } } - return require('lodash-cli')(["include=" + (include.join(',')), "exports=none", "--output", "build/lodash-shrinkwrap.js", "--development"], function(data) { + return require('lodash-cli')(["include=" + (include.join(',')), "exports=none", "iife=var lodash = _ = (function() {%output%; \nreturn lodash;\n}.call(this));", "--output", "build/lodash-shrinkwrap.js", "--development"], function(data) { var outputPath, sourceMap; outputPath = data.outputPath; sourceMap = data.sourceMap;