Skip to content

Commit

Permalink
fixed gulp concat of multiple source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
bitkeeper committed Sep 29, 2020
1 parent 3eed972 commit 6ca187e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,10 @@ gulp.task('bundle', gulp.series([`cache`, `maps`],function (done) {
transformPath:fileNameToMin
// use add path the location with the min versions
,searchPath: pkg.app.cache
,allowEmpty: true }))
,allowEmpty: true }, $.lazypipe().pipe($.sourcemaps.init, { loadMaps: true })))
.pipe($.if(['**/*.min.js', '**/*.min.css'], $.header(banner, {pkg: pkg}) ))
.pipe($.size({showFiles: true, total: true}))
.pipe($.sourcemaps.write('maps'))
// don't write the patched html file
.pipe($.if('!*.html', gulp.dest(pkg.app.dest)))
.on('end', done);
Expand Down

0 comments on commit 6ca187e

Please sign in to comment.