diff --git a/scripts/build-custom-theme.js b/scripts/build-custom-theme.js index 3a904fea8..2e6618ba9 100644 --- a/scripts/build-custom-theme.js +++ b/scripts/build-custom-theme.js @@ -91,13 +91,13 @@ while((match = ruleRegex.exec(colorsFile)) !== null) { const colorCSS = [] const nonColorCSS = []; - let inKeyFrameBlock = false; + let s = false; lines.forEach(l => { - if (inKeyFrameBlock) { + if (s) { nonColorCSS.push(l); if (/^}/.test(l)) { - inKeyFrameBlock = false; + s = false; } } else if (/^@keyframes/.test(l)) { nonColorCSS.push(l);