Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 607dd02

Browse files
Splaktarjelbourn
authored andcommitted
build(gulp-uglify): use new syntax for preserving some comments (#11365)
fix build broken by gulp-uglify update
1 parent 0ed110b commit 607dd02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gulp/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function buildJs () {
5858
.pipe(insert.prepend(config.banner))
5959
.pipe(insert.append(';window.ngMaterial={version:{full: "' + VERSION +'"}};'))
6060
.pipe(gulp.dest(config.outputDir))
61-
.pipe(gulpif(!IS_DEV, uglify({ preserveComments: 'some' })))
61+
.pipe(gulpif(!IS_DEV, uglify({ output: { comments: 'some' }})))
6262
.pipe(rename({ extname: '.min.js' }))
6363
.pipe(gulp.dest(config.outputDir));
6464

@@ -127,7 +127,7 @@ function buildModule(module, opts) {
127127
function buildMin() {
128128
return lazypipe()
129129
.pipe(gulpif, /.css$/, minifyCss(),
130-
uglify({ preserveComments: 'some' })
130+
uglify({ output: { comments: 'some' }})
131131
.on('error', function(e) {
132132
console.log('\x07',e.message);
133133
return this.end();

0 commit comments

Comments
 (0)