-
Notifications
You must be signed in to change notification settings - Fork 9
/
Gulpfile.js
29 lines (22 loc) · 925 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
'use strict';
// -----------------------------------------------------------------------------
// Dependencies
// -----------------------------------------------------------------------------
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var packageInfo = require('./package.json');
// -----------------------------------------------------------------------------
// Dist
// -----------------------------------------------------------------------------
gulp.task('compress', function() {
return gulp.src('./include-media.js')
.pipe(plugins.uglify())
.pipe(plugins.rename({
suffix: '-' + packageInfo.version + '.min'
}))
.pipe(gulp.dest('./dist'));
});
// -----------------------------------------------------------------------------
// Default task
// -----------------------------------------------------------------------------
gulp.task('default', ['compress']);