Answer the question
In order to leave comments, you need to log in
Is it possible to stop pipe execution for a specific file in gulp?
Hello! There is such a gallp task:
function jsBuild () {
return gulp.src( path.app.js )
.pipe( sourcemaps.init() )
.pipe( babel() )
.pipe( concat( 'main.js' ) )
.pipe( uglify( {
toplevel: true
} ) )
.pipe( replace( '"use strict";', '' ) )
.pipe( sourcemaps.write( './' ) )
.pipe( gulp.dest( path.dist.js ) )
.pipe( browserSync.stream() );
}
app: {
html: 'app/*.html',
js: [
'app/js/jquery-3.4.1.min.js',
'app/js/jquery.treeSelector.js',
'app/js/parallax_background.js',
'app/js/TweenLite.min.js',
'app/js/wow.min.js',
'app/js/CSSPlugin.min.js',
'app/js/popper.min.js',
'app/js/main.js',
],
mainJs: 'app/js/main.js',
scss: 'app/css/main.scss',
img: 'app/img/**/*.*',
fonts: 'app/fonts/**/*.*'
},
{
"presets": [
"@babel/env"
]
}
) Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question