Skip to content

Commit

Permalink
Write sourcemap in separate files 📁
Browse files Browse the repository at this point in the history
  • Loading branch information
abouolia committed Aug 31, 2017
1 parent dd78b94 commit b8f2ace
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ gulp.task("default", ['babel', 'concat', 'uglify']);

gulp.task("babel", function(){
return gulp.src("src/*.js")
.pipe(sourcemaps.init())
.pipe(babel())
.pipe(sourcemaps.write("."))
.pipe(gulp.dest("dist"));
});

Expand All @@ -46,7 +44,7 @@ gulp.task('bundle', ['concat'], function(){
format: 'iife',
moduleName: 'stickySidebarModule'
}))
.pipe(sourcemaps.write())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./dist'));
});

Expand Down

0 comments on commit b8f2ace

Please sign in to comment.