Update plugin API

This commit is contained in:
Matthew Dean
2017-01-09 07:34:31 -08:00
parent 8ba8c00a42
commit 1736ea5c37

View File

@@ -1,10 +1,15 @@
(function (root, registerPlugin) {
if (typeof define === 'function' && define.amd) { define([], registerPlugin);
} else if (typeof module === 'object' && module.exports) { module.exports = registerPlugin();
} else { if (!root.less) { root.less = {}; } if (!root.less.plugins) { root.less.plugins = []; }
root.less.plugins.push(registerPlugin()); } }
(this, function () {
if (typeof define === 'function' && define.amd) {
define([], registerPlugin);
} else if (typeof module === 'object' && module.exports) {
module.exports = registerPlugin();
} else {
if (!root.less) { root.less = {}; }
if (!root.less.plugins) { root.less.plugins = []; }
root.less.plugins.push(registerPlugin());
}
}(this, function () {
// Less.js Plugin object
return {
install: function(less, pluginManager, functions) {
// functions.add('')