From 7710286472d04a1077b1309566c0b1e3f7a25dd4 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Thu, 30 Jan 2020 10:28:56 -0330 Subject: [PATCH] Explicitly set Sass compiler for gulp-sass (#7948) As per the gulp-sass docs [1] we should be setting the `sass.compiler` property for forwards-compatibility "in case the default ever changes." [1]:https://github.com/dlmanning/gulp-sass/tree/v4.0.2#basic-usage --- gulpfile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index bfefb70cb..79b725557 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -29,6 +29,8 @@ const { makeStringTransform } = require('browserify-transform-tools') const packageJSON = require('./package.json') +sass.compiler = require('node-sass') + const dependencies = Object.keys(packageJSON && packageJSON.dependencies || {}) const materialUIDependencies = ['@material-ui/core'] const reactDepenendencies = dependencies.filter(dep => dep.match(/react/))