1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

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
This commit is contained in:
Whymarrh Whitby 2020-01-30 10:28:56 -03:30 committed by GitHub
parent ca9aaad911
commit 7710286472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/))