Merge branch 'pr/967'
This commit is contained in:
commit
d8be64b3e7
12
gulpfile.js
12
gulpfile.js
@ -20,8 +20,17 @@ gulp.task('templates', function () {
|
||||
.pipe(gulp.dest('app/js'))
|
||||
})
|
||||
|
||||
gulp.task('usemin-badbrowser', function() {
|
||||
return gulp.src('app/badbrowser.html')
|
||||
.pipe($.usemin({
|
||||
html: [$.minifyHtml({empty: true})],
|
||||
css: ['concat', $.minifyCss({compatibility: true, keepBreaks: true})],
|
||||
}))
|
||||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
gulp.task('usemin', function () {
|
||||
return gulp.src(['app/index.html', 'app/badbrowser.html'])
|
||||
return gulp.src('app/index.html')
|
||||
.pipe($.usemin({
|
||||
html: [$.minifyHtml({empty: true})],
|
||||
js: ['concat', $.ngAnnotate(), $.uglify({outSourceMap: false})],
|
||||
@ -264,6 +273,7 @@ gulp.task('build', ['clean'], function (callback) {
|
||||
['less', 'templates'],
|
||||
'enable-production',
|
||||
'usemin',
|
||||
'usemin-badbrowser',
|
||||
['copy', 'copy-locales', 'copy-images', 'disable-production'],
|
||||
callback
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user