Skip to content

Commit 077edbe

Browse files
committed
chore(): Update gulp-sass to fix issue on node 16
node-sass appears to be the only dependency that complains whenever running node 16. Otherwise, once this is merged I think we can bump to 16?
1 parent 67a745f commit 077edbe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Gulpfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const path = require('path');
1515
const pkg = require('./package.json');
1616
const prefix = require('gulp-autoprefixer');
1717
const rename = require('gulp-rename');
18-
const sass = require('gulp-sass');
18+
const sass = require('gulp-sass')(require('node-sass'));
1919
const uglify = require('gulp-uglify-es').default;
2020

2121
var closureStart =
@@ -231,4 +231,4 @@ module.exports = {
231231
stylesMain,
232232
stylesOthers,
233233
watch,
234-
};
234+
};

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"gulp-load-plugins": "^2.0.2",
6969
"gulp-nodemon": "^2.4.2",
7070
"gulp-rename": "^2.0.0",
71-
"gulp-sass": "^4.0.2",
71+
"gulp-sass": "^5.1.0",
7272
"gulp-size": "^3.0.0",
7373
"gulp-sourcemaps": "^2.6.5",
7474
"gulp-uglify-es": "^2.0.0",
@@ -81,6 +81,7 @@
8181
"lodash": "4.17.15",
8282
"marked": "^0.8.0",
8383
"moment": "^2.24.0",
84+
"node-sass": "^7.0.1",
8485
"nunjucks": "^3.2.0",
8586
"nunjucks-date-filter": "^0.1.1",
8687
"prismic-dom": "^2.2.3",

0 commit comments

Comments
 (0)