Skip to content

Commit

Permalink
fix css sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanman committed Jan 13, 2017
1 parent 2d41f75 commit 3987b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulp/sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ var config = require('./config.json')

gulp.task('sass', function () {
return gulp.src(config.paths.assets + '/sass/*.scss')
.pipe(sourcemaps.init())
.pipe(sass({outputStyle: 'expanded',
includePaths: ['govuk_modules/govuk_frontend_toolkit/stylesheets',
'govuk_modules/govuk_template/assets/stylesheets',
'govuk_modules/govuk-elements-sass/']}).on('error', sass.logError))
.pipe(sourcemaps.init())
.pipe(sourcemaps.write())
.pipe(gulp.dest(config.paths.public + '/stylesheets/'))
})

gulp.task('sass-documentation', function () {
return gulp.src(config.paths.docsAssets + '/sass/*.scss')
.pipe(sourcemaps.init())
.pipe(sass({outputStyle: 'expanded',
includePaths: ['govuk_modules/govuk_frontend_toolkit/stylesheets',
'govuk_modules/govuk_template/assets/stylesheets',
'govuk_modules/govuk-elements-sass/']}).on('error', sass.logError))
.pipe(sourcemaps.init())
.pipe(sourcemaps.write())
.pipe(gulp.dest(config.paths.public + '/stylesheets/'))
})

0 comments on commit 3987b85

Please sign in to comment.