Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Commit

Permalink
Rename the sourcemap to .min.css
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Jul 26, 2016
1 parent 88dac26 commit 169f93a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,15 @@ gulp.task('less', function() {
title: 'cleancss:'
}))
.pipe(cleancss())
.pipe(sourcemaps.write('./'))
.pipe(sourcemaps.write('./', {
mapFile: function () {
var name = mapFile.split('.css');
return name[0] + '.min.css' + name[1];
}
}))
.pipe(debug({
title: 'copy:'
}))
.pipe(gulp.dest('dist/css/'));

/*gulp.src('src/m8tro-extras.less')
Expand Down

0 comments on commit 169f93a

Please sign in to comment.