Answer the question
In order to leave comments, you need to log in
What settings to change in uglify?
There is a task:
gulp.task('scripts', function() {
return gulp.src([
dir.assets + '/library/jquery/dist/jquery.js',
dir.assets + '/library/fotorama/fotorama.js',
dir.assets + '/js/main.js'
])
.pipe(sourcemaps.init())
.pipe(concat('scripts.min.js'))
.pipe(uglify())
.pipe(gulp.dest(''))
.pipe(sourcemaps.write('souremaps/'))
.pipe(browserSync.reload({stream: true}));
});
Answer the question
In order to leave comments, you need to log in
Also faced this problem. the solution from here helped me: https://github.com/artpolikarpov/fotorama/issues/528
I took the photo frame script from the comment, and with it everything was compressed and assembled.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question