Having a problem with a gulp and js file minifications, gulp makes 3 times bigger files.
For example lightgallery.min.js - 49kb (downloaded from GitHub) then I download the same file via npm and required in js file (same if I insert downloaded file content from github)
global.lightgallery = require('lightgallery');
and run gulp it makes file 133kb
GULP TASK
gulp.task('scripts', function() {
gulp.src( SOURCEPATHS.jsSource )
.pipe( browserify() )
.pipe( uglify() )
.pipe( rename({ extname: '.min.js' }) )
.pipe( gulp.dest(APPPATH.js) );
});
Not using any sourcemaps.
Maybe someone was having the same problem?
from Gulp 3 - Makes js files 3 times bigger then normal files
No comments:
Post a Comment