Skip to content

Commit

Permalink
Update gulpfile.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmilinovic authored Nov 14, 2024
1 parent dbd19c4 commit cfe70da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ gulp.task('del', function () {

// Make bundle task
gulp.task('make-bundle', gulp.series('del', 'html2js', 'css2js', function () {
console.log('Starting make-bundle task');
return gulp.src(['./dist/*', './src/*.js'])
.pipe(concat('ionic-datepicker.bundle.min.js'))
.pipe(uglify())
.pipe(gulp.dest('./dist/'));
.pipe(uglify().on('error', (e) => console.error('Uglify error:', e))) // Catch uglify errors
.pipe(gulp.dest('./dist/'))
.on('end', () => console.log('make-bundle task completed and bundle file created.'));
}));

// Delete temporary files task
Expand Down

0 comments on commit cfe70da

Please sign in to comment.