Skip to content

Commit

Permalink
fix source map problem
Browse files Browse the repository at this point in the history
当前设置下,由于 autoprefixer 的原因,导致 source map 不能正常工作
  • Loading branch information
ZoomZhao committed Jan 22, 2016
1 parent 33a4075 commit ced6f2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ gulp.task('styles', ['source'], function () {
this.emit('end');
}))
.pipe(sourcemaps.write())
.pipe(sourcemaps.init({loadMaps:true}))
.pipe(autoprefixer())
.pipe(header(banner, { pkg : pkg } ))
.pipe(sourcemaps.write())
.pipe(gulp.dest(dist))
.pipe(nano())
.pipe(rename(function (path) {
Expand Down

0 comments on commit ced6f2a

Please sign in to comment.