mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Synchronize localizations from Transifex
Update package.json dependencies Fix eslint errors webpack 2 -> webpack 3
This commit is contained in:
parent
36dbe0defd
commit
8da988fef2
34 changed files with 888 additions and 757 deletions
|
|
@ -53,6 +53,7 @@ var
|
|||
filter = require('gulp-filter'),
|
||||
expect = require('gulp-expect-file'),
|
||||
chmod = require('gulp-chmod'),
|
||||
size = require('gulp-size'),
|
||||
gutil = require('gulp-util');
|
||||
|
||||
cfg.community = !argv.pro;
|
||||
|
|
@ -385,6 +386,10 @@ gulp.task('js:admin', ['js:webpack'], function() {
|
|||
gulp.task('js:min', ['js:app', 'js:admin'], function() {
|
||||
return gulp.src(cfg.paths.staticJS + '*.js')
|
||||
.pipe(replace(/"rainloop\/v\/([^\/]+)\/static\/js\/"/g, '"rainloop/v/$1/static/js/min/"'))
|
||||
.pipe(size({
|
||||
showFiles: true,
|
||||
showTotal: false
|
||||
}))
|
||||
.pipe(rename({suffix: '.min'}))
|
||||
.pipe(uglify({
|
||||
mangle: true,
|
||||
|
|
@ -392,6 +397,10 @@ gulp.task('js:min', ['js:app', 'js:admin'], function() {
|
|||
ie8: false
|
||||
}))
|
||||
.pipe(eol('\n', true))
|
||||
.pipe(size({
|
||||
showFiles: true,
|
||||
showTotal: false
|
||||
}))
|
||||
.pipe(gulp.dest(cfg.paths.staticMinJS))
|
||||
.on('error', gutil.log);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue