mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-27 00:36:44 +03:00
Terser strip comments
This commit is contained in:
parent
c3e4a19447
commit
a1ce3f0e84
1 changed files with 3 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue