mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Use gulp-terser instead of gulp-uglify for ES2015
This commit is contained in:
parent
15ceddc202
commit
a8100d34f8
2 changed files with 6 additions and 6 deletions
|
|
@ -87,7 +87,6 @@
|
||||||
"gulp-sourcemaps": "2.6.5",
|
"gulp-sourcemaps": "2.6.5",
|
||||||
"gulp-stripbom": "1.0.5",
|
"gulp-stripbom": "1.0.5",
|
||||||
"gulp-through": "0.4.0",
|
"gulp-through": "0.4.0",
|
||||||
"gulp-uglify": "3.0.2",
|
|
||||||
"gulp-util": "3.0.8",
|
"gulp-util": "3.0.8",
|
||||||
"gulp-zip": "5.0.1",
|
"gulp-zip": "5.0.1",
|
||||||
"ifvisible.js": "1.0.6",
|
"ifvisible.js": "1.0.6",
|
||||||
|
|
@ -119,5 +118,8 @@
|
||||||
"underscore": "1.9.2",
|
"underscore": "1.9.2",
|
||||||
"webpack": "4.41.5",
|
"webpack": "4.41.5",
|
||||||
"webpack-cli": "3.3.10"
|
"webpack-cli": "3.3.10"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"gulp-terser": "^1.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ const concat = require('gulp-concat-util'),
|
||||||
header = require('gulp-header'),
|
header = require('gulp-header'),
|
||||||
rename = require('gulp-rename'),
|
rename = require('gulp-rename'),
|
||||||
replace = require('gulp-replace'),
|
replace = require('gulp-replace'),
|
||||||
uglify = require('gulp-uglify'),
|
terser = require('gulp-terser'),
|
||||||
plumber = require('gulp-plumber'),
|
plumber = require('gulp-plumber'),
|
||||||
gulpif = require('gulp-if'),
|
gulpif = require('gulp-if'),
|
||||||
eol = require('gulp-eol'),
|
eol = require('gulp-eol'),
|
||||||
|
|
@ -65,10 +65,8 @@ const jsMin = () =>
|
||||||
.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(
|
.pipe(
|
||||||
uglify({
|
terser({
|
||||||
mangle: true,
|
output: {comments: false}
|
||||||
compress: true,
|
|
||||||
ie8: false
|
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.pipe(eol('\n', true))
|
.pipe(eol('\n', true))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue