We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
!default
1 parent 844ac42 commit 1c8d397Copy full SHA for 1c8d397
build/lessToSass.js
@@ -69,7 +69,10 @@ function convertVariables(line) {
69
// Matches any @ that doesn't have 'media ' or 'import ' after it.
70
var atRegex = /@(?!(media|import|mixin|font-face|keyframes)(\s|\())/g;
71
72
- return line.replace(atRegex, '$');
+ // Matches any Sass variable line
73
+ var variableRegex = /^(\$[\w\d-_]+:\s*(.(?!\!default))+);(.*)$/gm;
74
+
75
+ return line.replace(atRegex, '$$').replace(variableRegex, '$1 !default;$3');
76
}
77
78
function convertFileExtensions(line) {
0 commit comments