Added source map while uglifying

This commit is contained in:
Igor Zhukov 2014-04-08 13:28:18 +02:00
parent 41500e2e8f
commit 376c1173ff

View File

@ -21,7 +21,7 @@ gulp.task('usemin', ['templates', 'enable-production'], function() {
return gulp.src('app/index.html')
.pipe($.usemin({
html: [$.minifyHtml({empty: true})],
js: [$.ngmin(), $.uglify(), 'concat'],
js: ['concat', $.ngmin(), $.uglify({outSourceMap: true})],
css: [$.minifyCss(), 'concat']
}))
.pipe(gulp.dest('dist'));