Skip to content

Commit

Permalink
stylesheetsタスクの修正
Browse files Browse the repository at this point in the history
autoprefixerでエラーが発生したため、sourcemapsの順番と設定を変更
sindresorhus/gulp-autoprefixer#8 を参考にした
  • Loading branch information
flect-miyake committed Sep 14, 2015
1 parent 6560270 commit 256b205
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gulp/tasks/stylesheets.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,16 @@ gulp.task('stylesheets', function() {
return gulp.src(config.src)
.pipe(sourcemaps.init())
.pipe(sass(sassConfig.options))
.pipe(sourcemaps.write({
includeContent: false,
sourceRoot: '.'
}))
.on('error', handleErrors)
.pipe(sourcemaps.write())
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(autoprefixer(autoprefixerConfig.options))
.pipe(sourcemaps.write({
includeContent: false,
sourceRoot: '.'
}))
.pipe(gulp.dest(config.dest));
});

0 comments on commit 256b205

Please sign in to comment.