Last active
February 11, 2024 22:28
-
-
Save ramesaliyev/6bb477ee5f42615ec8e7 to your computer and use it in GitHub Desktop.
Grunt UMD returnExportsGlobal Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt){ | |
"use strict"; | |
grunt.config("umd", { | |
global: { | |
src : "src/file.js", | |
dest : "dist/file.js", | |
template : "returnExportsGlobal.hbs", | |
objectToExport : "__", | |
globalAlias : "__", | |
indent : " ", | |
deps : { | |
args : ["_"], | |
"default" : ["_"], | |
amd : { | |
indent : " ", | |
items : ["lodash"], | |
prefix : "\"", | |
separator : ",\n", | |
suffix : "\"" | |
}, | |
cjs : { | |
indent : " ", | |
items : ["lodash"], | |
prefix : "require(\"", | |
separator : ",\n", | |
suffix : "\")" | |
}, | |
global : { | |
items: ["_"], | |
prefix: "" | |
} | |
} | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment