-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathgulpfile.js
More file actions
32 lines (29 loc) · 807 Bytes
/
Copy pathgulpfile.js
File metadata and controls
32 lines (29 loc) · 807 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
27
28
29
30
31
32
var gulp = require('gulp'),
browserSync = require('browser-sync').create(),
uglify = require('gulp-uglify'),
rename = require('gulp-rename');
gulp.task('default', ['bs']);
gulp.task('bs', function() {
return browserSync.init({
server: {
baseDir: "./",
},
startPath: './example/index.html',
ui : false,
watchOptions: {
ignoreInitial: true,
ignored: 'node_modules/*'
},
files : ['./**/*.html','./**/*.css', './**/*.js']
});
});
gulp.task('build', function () {
return gulp.src(['./src/leaflet-webgl-heatmap.js'])
.pipe(uglify({
preserveComments : 'license'
}))
.pipe(rename({
extname : ".min.js"
}))
.pipe(gulp.dest('./dist/'));
});