grunt-js-module-path:Grunt 插件为每个 AMD 模块添加文件路径

时间:2021-06-07 22:58:31
【文件属性】:
文件名称:grunt-js-module-path:Grunt 插件为每个 AMD 模块添加文件路径
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-07 22:58:31
JavaScript grunt-js-module-path Grunt 插件为每个 AMD 模块添加文件路径。 您可以按文件有多个定义语句,并且允许使用多个奇怪的语法(请参阅测试)。 此模块的示例 define('path/to/my/module', ['dependency'], function () { var Module = function () { // We want to know in which file we are, dynamically } return Module; }); 将被修补为 define('path/to/my/module', ['dependency'], function () { var __FILE__ = 'path/to/my/module'; var Module = function () { conso
【文件预览】:
grunt-js-module-path-master
----.gitignore(546B)
----tasks()
--------js-module-path.js(4KB)
----README.md(1KB)
----test()
--------input()
--------js-module-path-test.js(3KB)
----LICENSE(1KB)
----Gruntfile.js(1KB)
----package.json(897B)

网友评论