--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
28
node_modules/less/lib/less-browser/image-size.js
generated
vendored
Normal file
28
node_modules/less/lib/less-browser/image-size.js
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
module.exports = function() {
|
||||
|
||||
var functionRegistry = require("./../less/functions/function-registry");
|
||||
|
||||
function imageSize() {
|
||||
throw {
|
||||
type: "Runtime",
|
||||
message: "Image size functions are not supported in browser version of less"
|
||||
};
|
||||
}
|
||||
|
||||
var imageFunctions = {
|
||||
"image-size": function(filePathNode) {
|
||||
imageSize(this, filePathNode);
|
||||
return -1;
|
||||
},
|
||||
"image-width": function(filePathNode) {
|
||||
imageSize(this, filePathNode);
|
||||
return -1;
|
||||
},
|
||||
"image-height": function(filePathNode) {
|
||||
imageSize(this, filePathNode);
|
||||
return -1;
|
||||
}
|
||||
};
|
||||
|
||||
functionRegistry.addMultiple(imageFunctions);
|
||||
};
|
||||
Loading…
Reference in a new issue