Skip to content

Commit

Permalink
updated gulp script
Browse files Browse the repository at this point in the history
  • Loading branch information
GitBrent authored and GitBrent committed Feb 19, 2018
1 parent db86c32 commit 5cdc352
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ var gulp = require('gulp'),
ignore = require('gulp-ignore'),
uglify = require('gulp-uglify');

gulp.task('build', function () {
gulp.src(['libs/*', 'dist/pptxgen.js'])
gulp.task('default', function(){
gulp.src(['libs/*', 'dist/pptxgen.js'])
.pipe(concat('pptxgen.bundle.js'))
.pipe(sourcemaps.init())
.pipe(ignore.exclude(["**/*.map"]))
.pipe(uglify())
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('dist/'));

gulp.src(['dist/pptxgen.js'])
.pipe(concat('pptxgen.min.js'))
.pipe(uglify())
.pipe(gulp.dest('dist/'));
});

0 comments on commit 5cdc352

Please sign in to comment.