Answer the question
In order to leave comments, you need to log in
How to include JS script (ES5/6...) using Gulp?
In short, there is a task in gulpfile that collects third-party libraries into one file:
gulp.task('vendor', function() {
var src = [
'node_modules/jquery/dist/jquery.min.js',
'node_modules/lodash/lodash.min.js',
'node_modules/vue/dist/vue.min.js',
'node_modules/vue-resource/dist/vue-resource.min.js',
'node_modules/blockui-npm/jquery.blockUI.js',
'node_modules/sweetalert/dist/sweetalert.min.js',
'node_modules/moment/min/moment.min.js',
'node_modules/sprintf-js/dist/sprintf.min.js',
];
gulp.src(src)
.pipe(concat('vendor.build.js'))
.pipe(gulp.dest('public/js'));
});
Answer the question
In order to leave comments, you need to log in
Thank the gods - I figured it out!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question