Browse Source

replaced gulp-sass with gulp-dart-sass

removed node-sass as explicit dev dependency
gulp-dart-sass will already require sass (new dart sass, not node-sass)

added fibers as a new dev dependency
this is a requirement to speed up async sass compiling
https://sass-lang.com/dart-sass

full sub-dependencies upgrade (deleted yarn.lock then did yarn install)

bumped v1 version string to trigger auto rebuild
master
Bobby Wibowo 10 months ago
parent
commit
a94d482fc5
No known key found for this signature in database GPG Key ID: 51C3A1E1E22D26CF
  1. 7
      gulpfile.js
  2. 4
      package.json
  3. 2
      src/versions.json
  4. 719
      yarn.lock

7
gulpfile.js

@ -2,6 +2,7 @@ const { exec } = require('child_process')
const gulp = require('gulp')
const cssnano = require('cssnano')
const del = require('del')
const Fiber = require('fibers')
const buble = require('gulp-buble')
const eslint = require('gulp-eslint7')
const gulpif = require('gulp-if')
@ -9,8 +10,8 @@ const nodemon = require('gulp-nodemon')
const postcss = require('gulp-postcss')
const postcssPresetEnv = require('postcss-preset-env')
const replace = require('gulp-replace')
const sass = require('gulp-sass')
const sassCompiler = require('node-sass')
const sass = require('gulp-dart-sass')
const sassCompiler = require('sass')
const sourcemaps = require('gulp-sourcemaps')
const stylelint = require('gulp-stylelint')
const terser = require('gulp-terser')
@ -105,7 +106,7 @@ gulp.task('build:sass', function () {
ignore: '_*.scss'
})
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(sass({ fiber: Fiber }).on('error', sass.logError))
.pipe(postcss(postcssPlugins))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(dist))

4
package.json

@ -65,19 +65,19 @@
"eslint-plugin-import": "~2.22.1",
"eslint-plugin-node": "~11.1.0",
"eslint-plugin-promise": "~4.2.1",
"fibers": "~5.0.0",
"gulp": "~4.0.2",
"gulp-buble": "~0.9.0",
"gulp-cli": "~2.3.0",
"gulp-dart-sass": "^1.0.2",
"gulp-eslint7": "~0.3.0",
"gulp-if": "~3.0.0",
"gulp-nodemon": "~2.5.0",
"gulp-postcss": "~9.0.0",
"gulp-replace": "~1.0.0",
"gulp-sass": "~4.1.0",
"gulp-sourcemaps": "~3.0.0",
"gulp-stylelint": "~13.0.0",
"gulp-terser": "~2.0.0",
"node-sass": "~4.14.1",
"postcss": "~8.1.7",
"postcss-preset-env": "~6.7.0",
"stylelint": "~13.8.0",

2
src/versions.json

@ -1,5 +1,5 @@
{
"1": "1605172204",
"1": "1605172205",
"2": "1602515119",
"3": "1602515119",
"4": "1602515119",

719
yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save