Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue with node-sass #787

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"gulp-plumber": "^1.2.1",
"gulp-postcss": "^8.0.0",
<%_ if (includeSass) { -%>
"gulp-sass": "^4.0.2",
"gulp-sass": "^5.1.0",
<%_ } -%>
"gulp-size": "^3.0.0",
"gulp-uglify": "^3.0.2",
Expand All @@ -45,6 +45,9 @@
"mkdirp": "^0.5.1",
<%_ } -%>
"mocha": "^6.1.4",
<%_ if (includeSass) { -%>
"sass": "^1.58.3",
<%_ } -%>
"yargs": "13.2.4"
},
"scripts": {
Expand Down
7 changes: 5 additions & 2 deletions app/templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const Modernizr = require('modernizr');
const browserSync = require('browser-sync');
const del = require('del');
const autoprefixer = require('autoprefixer');
<%_ if (includeSass) { -%>
const sass = require('gulp-sass')(require('sass'));
<%_ } -%>
const cssnano = require('cssnano');
const { argv } = require('yargs');

Expand All @@ -27,11 +30,11 @@ function styles() {
sourcemaps: !isProd,
})
.pipe($.plumber())
.pipe($.sass.sync({
.pipe(sass.sync({
outputStyle: 'expanded',
precision: 10,
includePaths: ['.']
}).on('error', $.sass.logError))
}).on('error', sass.logError))
<%_ } else { -%>
return src('app/styles/*.css', {
sourcemaps: !isProd,
Expand Down
Loading