fix: errors when building theme using CSS variables (#15140)

* Adds an extra theme to the build that will allow us to verify that everything still works if somebody passes in the palette colors as CSS variables.
* Fixes a handful of places where Sass would either throw an error or would produce invalid CSS.

Fixes #15107.
This commit is contained in:
Kristiyan Kostadinov
2019-02-13 16:30:11 +01:00
committed by Jeremy Elbourn
parent 3163cc6d74
commit 35e89e5344
11 changed files with 202 additions and 105 deletions
@@ -17,7 +17,7 @@ gulpSass.compiler = nodeSass;
/** Create a gulp task that builds SCSS files. */
export function buildScssPipeline(sourceDir: string, minifyOutput = false) {
return src(join(sourceDir, '**/*.scss'))
return src(join(sourceDir, '**/!(test-).scss'))
.pipe(gulpSass({includePaths: sassIncludePaths}).on('error', gulpSass.logError))
.pipe(gulpIf(minifyOutput, gulpCleanCss()));
}