Answer the question
In order to leave comments, you need to log in
How to setup gulp uglify properly?
How to write a task to minify all scripts separately?
If by default I write
gulp.task('javascript', function(){
return gulp.src([ 'app/pre-js/**/*.js' ])
.pipe(uglify())
.pipe(gulp.dest('app/js'));
});
Answer the question
In order to leave comments, you need to log in
Haven't worked with gulp for 1000 years. Perhaps an example of my old config will help you.
When I needed to transpile scss to css and put the result next to the source, I did this:
gulp.task('styles', function ()
{
return gulp.src(path.join(paths.templatePath, '*.scss'))
.pipe(sass(sassConfig).on('error', sass.logError))
.pipe(postcss(postProcessors))
.pipe(gulp.dest(function (file)
{
return file.base;
}));
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question