Skip parsing inline JavaScript code in Less (#14109)
This commit is contained in:
1 parent
a26e8ace46
commit
e01f86aa09
5 files changed
+79
No files matched your search
@@ -0,0 +1,11 @@
|
||||
// Deprecated feature https://lesscss.org/usage/#less-options-enable-inline-javascript-deprecated-
|
||||
|
||||
.calcPxMixin() {
|
||||
@functions: ~`(function() {
|
||||
const designWidth = 3840
|
||||
const actualWidth = 5760
|
||||
this.calcPx = function(_) {
|
||||
return _ * actualWidth / designWidth + 'px'
|
||||
}
|
||||
})()`
|
||||
}
|
||||
Reference in new issue
Block a user