Skip to content

Commit cfe2025

Browse files
committed
Update README.md
1 parent 4dad0dd commit cfe2025

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var coffee = require('gulp-coffee');
2626
var concat = require('gulp-concat');
2727
var uglify = require('gulp-uglify');
2828
var imagemin = require('gulp-imagemin');
29-
29+
var sourcemaps = require('gulp-sourcemaps');
3030
var del = require('del');
3131

3232
var paths = {
@@ -43,10 +43,13 @@ gulp.task('clean', function(cb) {
4343

4444
gulp.task('scripts', ['clean'], function() {
4545
// Minify and copy all JavaScript (except vendor scripts)
46+
// with sourcemaps all the way down
4647
return gulp.src(paths.scripts)
47-
.pipe(coffee())
48-
.pipe(uglify())
49-
.pipe(concat('all.min.js'))
48+
.pipe(sourcemaps.init())
49+
.pipe(coffee())
50+
.pipe(uglify())
51+
.pipe(concat('all.min.js'))
52+
.pipe(sourcemaps.write())
5053
.pipe(gulp.dest('build/js'));
5154
});
5255

0 commit comments

Comments
 (0)