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 cfe70da commit 46e407a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,10 @@ 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().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.'));
.pipe(uglify())
.pipe(gulp.dest('./dist/'));
}));

// Delete temporary files task
Expand Down

0 comments on commit 46e407a

Please sign in to comment.