This repository was archived by the owner on Jul 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
48 lines (44 loc) · 1.46 KB
/
gulpfile.js
File metadata and controls
48 lines (44 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* ArchFramework (ArchFW in short) is universal template for server-side rendered applications and services.
* ArchFW comes with pre-installed router and JSON API functionality.
* Visit https://github.com/archi-tektur/ArchFW/ for more info.
*
* PHP version 7.2
*
* @category Framework/Boilerplate
* @package ArchFW
* @author Oskar 'archi-tektur' Barcz <kontakt@archi-tektur.pl>
* @copyright 2018 Oskar 'archi_tektur' Barcz
* @license MIT https://opensource.org/licenses/MIT
* @version 2.8.0
* @link https://github.com/archi-tektur/ArchFW/
*/
let gulp = require('gulp');
let sass = require('gulp-sass');
let concat = require('gulp-concat-css');
let cleanCSS = require('gulp-clean-css');
let autoprefixer = require('gulp-autoprefixer');
gulp.task('css', function() {
return gulp.src('public_html/scss/**/*.scss').
pipe(sass()).
pipe(concat('master.css')).
pipe(autoprefixer({
browsers: ['last 2 versions'],
cascade: false,
})).
pipe(cleanCSS({compatibility: 'ie8'})).
pipe(gulp.dest('public_html/css/'));
});
gulp.task('default', () => {
gulp.watch('public_html/scss/**/*.scss', function() {
return gulp.src('public_html/scss/**/*.scss').
pipe(sass()).
pipe(concat('master.css')).
pipe(autoprefixer({
browsers: ['last 2 versions'],
cascade: false,
})).
pipe(cleanCSS({compatibility: 'ie8'})).
pipe(gulp.dest('public_html/css/'));
});
});