Skip to content

Commit

Permalink
Explicitly set Sass compiler for gulp-sass (#7948)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
whymarrh authored Jan 30, 2020
1 parent ca9aaad commit 7710286
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/))
Expand Down

0 comments on commit 7710286

Please sign in to comment.