Bugfix: bootstrap jQuery('#') syntax error

Changed: use ES2015
Changed: gulp uglify to terser
Removed: ChangePassword
Removed: nanoscroll
Removed: JS polyfills
This commit is contained in:
djmaze 2020-03-13 15:30:39 +01:00
parent 9aa0cf92a9
commit aae7883b99
133 changed files with 15 additions and 10295 deletions

View file

@ -5,7 +5,7 @@ const concat = require('gulp-concat-util'),
header = require('gulp-header'),
rename = require('gulp-rename'),
replace = require('gulp-replace'),
uglify = require('gulp-uglify'),
terser = require('gulp-terser'),
plumber = require('gulp-plumber'),
gulpif = require('gulp-if'),
eol = require('gulp-eol'),
@ -64,13 +64,7 @@ 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(
uglify({
mangle: true,
compress: true,
ie8: false
})
)
.pipe(terser())
.pipe(eol('\n', true))
.pipe(gulpif(config.source, sourcemaps.write('./')))
.pipe(