mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-26 09:03:48 +08: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(gulpif(config.source, sourcemaps.init({ loadMaps: true })))
|
||||||
.pipe(replace(/"rainloop\/v\/([^/]+)\/static\/js\/"/g, '"rainloop/v/$1/static/js/min/"'))
|
.pipe(replace(/"rainloop\/v\/([^/]+)\/static\/js\/"/g, '"rainloop/v/$1/static/js/min/"'))
|
||||||
.pipe(rename({ suffix: '.min' }))
|
.pipe(rename({ suffix: '.min' }))
|
||||||
.pipe(terser())
|
.pipe(terser({
|
||||||
|
output: {comments: false}
|
||||||
|
}))
|
||||||
.pipe(eol('\n', true))
|
.pipe(eol('\n', true))
|
||||||
.pipe(gulpif(config.source, sourcemaps.write('./')))
|
.pipe(gulpif(config.source, sourcemaps.write('./')))
|
||||||
.pipe(
|
.pipe(
|
||||||
|
|
Loading…
Reference in a new issue