Merge pull request #607 from alex-wright-net/master-sassmaps

Add Sass Maps functionality
This commit is contained in:
Holger 2018-03-21 12:00:33 +01:00 committed by GitHub
commit e1c6d007a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -83,9 +83,11 @@ gulp.task( 'sass', function() {
this.emit( 'end' );
}
} ) )
.pipe(sourcemaps.init({loadMaps: true}))
.pipe( sass( { errLogToConsole: true } ) )
.pipe( autoprefixer( 'last 2 versions' ) )
.pipe( gulp.dest( paths.css ) );
.pipe(sourcemaps.write(undefined, { sourceRoot: null }))
.pipe( gulp.dest( paths.css ) )
return stream;
});