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
/
interpolation.js
12 lines
(11 loc)
•
288 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/* README : http:
//sass
-lang.com/documentation/file.SASS_REFERENCE.html
#interpolation_
background: url(
"
${dir}
/
${path}
"
); TO =====> background: url(
'#{$dir}/#{$path}'
); *
/ module.exports = { pattern: /
\${([^}]+)\}/gi, replacement:
'#{$$$1}'
, order:
3
};
//
/\
$\
{([^}]+)\}