Merge pull request #557 from google/fix-comments

Fixes #547 - avoid duplicate license comments in minified JS build
master
Addy Osmani 2015-07-01 12:42:28 +01:00
commit db782dafae
1 changed files with 5 additions and 3 deletions

View File

@ -217,11 +217,13 @@ gulp.task('scripts', function () {
.pipe($.sourcemaps.init())
// Concatenate Scripts
.pipe($.concat('material.js'))
.pipe($.header(banner, {pkg: pkg}))
.pipe(gulp.dest('./dist'))
// Minify Scripts
.pipe($.uglify({preserveComments: 'some', sourceRoot: '.',
sourceMapIncludeSources: true}))
.pipe($.uglify({
sourceRoot: '.',
sourceMapIncludeSources: true
}))
.pipe($.header(banner, {pkg: pkg}))
.pipe($.concat('material.min.js'))
// Write Source Maps
.pipe($.sourcemaps.write('./'))