-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgulpfile.js
More file actions
26 lines (22 loc) · 748 Bytes
/
gulpfile.js
File metadata and controls
26 lines (22 loc) · 748 Bytes
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
'use strict';
const gulp = require('gulp');
const uglify = require('gulp-uglify');
const cleanCSS = require('gulp-clean-css');
const rename = require('gulp-rename');
gulp.task('scripts', function () {
return gulp.src('assets/js/mobile-menu.jquery.js')
.pipe(uglify())
.pipe(rename(function(path) {
path.extname = '.min' + path.extname;
}))
.pipe(gulp.dest('assets/js'));
});
gulp.task('styles', function () {
return gulp.src('assets/css/mobile-menu.css')
.pipe(cleanCSS({restructuring: false}))
.pipe(rename(function(path) {
path.extname = '.min' + path.extname;
}))
.pipe(gulp.dest('assets/css'));
});
gulp.task('default', ['scripts', 'styles']);