mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-29 07:16:07 +00:00
Terser strip comments
This commit is contained in:
@@ -64,7 +64,9 @@ const jsMin = () =>
|
||||
.pipe(gulpif(config.source, sourcemaps.init({ loadMaps: true })))
|
||||
.pipe(replace(/"rainloop\/v\/([^/]+)\/static\/js\/"/g, '"rainloop/v/$1/static/js/min/"'))
|
||||
.pipe(rename({ suffix: '.min' }))
|
||||
.pipe(terser())
|
||||
.pipe(terser({
|
||||
output: {comments: false}
|
||||
}))
|
||||
.pipe(eol('\n', true))
|
||||
.pipe(gulpif(config.source, sourcemaps.write('./')))
|
||||
.pipe(
|
||||
|
||||
Reference in New Issue
Block a user