whisper.cat/weboasis/stocks/assets/vendor/air-datepicker-master/tasks/css.js

24 lines
773 B
JavaScript
Raw Normal View History

2023-10-05 23:28:32 +11:00
var gulp = require('gulp'),
rename = require('gulp-rename'),
sass = require('gulp-sass'),
postcss = require('gulp-postcss'),
autoprefixer = require('autoprefixer')({ browsers: ['last 2 versions'] }),
clone = require('gulp-clone'),
minify = require('gulp-minify-css'),
concat = require('gulp-concat');
module.exports = function () {
var stream = gulp.src('src/sass/*.scss')
.pipe(concat('datepicker.scss'))
.pipe(sass().on('error', sass.logError))
.pipe(postcss([autoprefixer]));
stream.pipe(clone())
.pipe(minify())
.pipe(rename('datepicker.min.css'))
.pipe(gulp.dest('dist/css'));
stream.pipe(clone())
.pipe(rename('datepicker.css'))
.pipe(gulp.dest('dist/css'))
};