Skip to content

Commit

Permalink
fix: update sass (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwolf3342 committed Jan 30, 2024
1 parent d9032dc commit 0f738b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
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

0 comments on commit 0f738b2

Please sign in to comment.