fix(typography): deprecation warning in latest sass version (#14673)

* Updates to the latest `node-sass` version.
* Fixes the build not using the `node-sass` version from the package.json.
* Fixes a deprecation warning from the latest SASS version when the consumer has configured a non-string `font-family` (e.g. `Helvetica Neue`).

Fixes #14636.
This commit is contained in:
Kristiyan Kostadinov
2019-01-04 20:55:08 +02:00
committed by mmalerba
parent 3c713488b9
commit 65ecb0886e
4 changed files with 45 additions and 12 deletions
@@ -4,6 +4,7 @@ import {buildConfig} from '../build-config';
// These imports lack of type definitions.
const gulpSass = require('gulp-sass');
const nodeSass = require('node-sass');
const gulpIf = require('gulp-if');
const gulpCleanCss = require('gulp-clean-css');
@@ -11,6 +12,9 @@ const sassIncludePaths = [
join(buildConfig.projectDir, 'node_modules/')
];
// Set the compiler to our version of `node-sass`, rather than the one that `gulp-sass` depends on.
gulpSass.compiler = nodeSass;
/** Create a gulp task that builds SCSS files. */
export function buildScssPipeline(sourceDir: string, minifyOutput = false) {
return src(join(sourceDir, '**/*.scss'))