UNPKG
grunt-less-to-sass
Version:
0.0.4 (0.0.4)
latest (0.0.10)
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.2
Convert Less Css files to Sass (.scss) files
github.com/viadeo/viadeo-webapp
viadeo/viadeo-webapp
grunt-less-to-sass
/
tasks
/
lib
/
replacements
/
mix.js
9 lines
(8 loc)
•
272 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
module.exports = { pattern:
/(shade|tint)\(([^,]+),\s?([\d%]+)\)/gi
, replacement: function (match,
method
,
color2
,
weight
)
{ var color1 =
method
=== '
shade
' ? '#000000' : '#
ffffff
'
;
return
'mix('
+ [color1, color2, weight].join(
', '
) +
')'
; }, order:
3
};