-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
34 lines (32 loc) · 973 Bytes
/
gulpfile.js
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
// loads various gulp modules
var gulp = require('gulp');
var concat = require('gulp-concat');
var cssnano = require('gulp-cssnano');
var autoprefixer = require('gulp-autoprefixer');
const imagemin = require('gulp-imagemin');
const pngquant = require('imagemin-pngquant');
gulp.task('concatContrib', function() {
gulp.src([
'css/main.css',
'css/normalize.css',
'css/screen.css',
'css/syntax.css',
'css/royalslider.css',
'css/skins/default-inverted/rs-default-inverted.css',
'css/foundation.min.css',
'css/github.css'
])
.pipe(cssnano())
.pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9'))
.pipe(concat('style.min.css'))
.pipe(gulp.dest('css'))
});
gulp.task('minImg', () => {
return gulp.src('img/surplace_analytics.jpg')
.pipe(imagemin({
progressive: true,
svgoPlugins: [{removeViewBox: false}],
use: [pngquant()]
}))
.pipe(gulp.dest('img'));
});