Skip to content

Commit

Permalink
chore: gulp-sass
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Jun 7, 2023
1 parent 65fb586 commit a40577f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
36 changes: 17 additions & 19 deletions build/styles.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
(function () {
'use strict';
'use strict';

var gulp = require('gulp');
// var sass = require('gulp-sass')(require('sass'));
var $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'gulp.*', 'del', '@jswork/gulp-*']
});
const gulp = require('gulp');
// const sass = require('gulp-sass')(require('sass'));
const $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'gulp.*', 'del', '@jswork/gulp-*']
});

//styles
gulp.task(
'styles',
gulp.parallel(function () {
return gulp
.src(['src/basic/*.scss', 'src/functions/*.scss', 'src/modules/*.scss'])
.pipe($.concat('index.scss'))
.pipe($.jswork.pkgHeader())
.pipe(gulp.dest('dist'));
})
);
})();
//styles
gulp.task(
'styles',
gulp.parallel(function () {
return gulp
.src(['src/basic/*.scss', 'src/functions/*.scss', 'src/modules/*.scss'])
.pipe($.concat('index.scss'))
.pipe($.jswork.pkgHeader())
.pipe(gulp.dest('dist'));
})
);
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"gulp-concat": "^2.6.0",
"gulp-load-plugins": "^1.2.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^5.1.0",
"release-it": "^14.2.2",
"sass": "^1.62.1",
"yargs": "^4.7.1"
Expand Down

0 comments on commit a40577f

Please sign in to comment.