mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
3163cc6d74
commit
35e89e5344
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user