Skip to content Skip to sidebar Skip to footer

How To Concat Js Library Files Using Gulp?

Please check out my gist: https://gist.github.com/flyspaceage/9e88716294df93c8eaece51fe413f7a3 All of my files seem to concat properly except the JS libraries. Im using JS Socials

Solution 1:

Place your vendor libraries in a different location. The reason why its not working is you are cleaning the dist directory, where the source files are present.

Move all the scripts present in this directory to a folder 'vendor'

libs: ['dist/scripts/libs/jquery.headroom.js', 'dist/scripts/libs/headroom.js', 'dist/scripts/libs/jssocials.js', 'dist/scripts/libs/slick.min.js', 'dist/scripts/libs/jquery.scrollify.js'],

then change the folder path to vendor

libs: ['vendor/scripts/libs/jquery.headroom.js', 'vendor/scripts/libs/headroom.js', etc..,,,],

Post a Comment for "How To Concat Js Library Files Using Gulp?"