You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, I grab my files from my vendors/ directory, then I copy them to my src/sass/vendors/ directory inside their vendors subfolders names.
For example :
vendors/font-awesome/scss/font-awesome.scss ----> src/sass/vendors/font-awesome/font-awesome.scss
Thanks in advance, and congratulations for this awesome tool !
The text was updated successfully, but these errors were encountered:
What paths does that put out in the dest folder? Probably like src/sass/vendors/vendors/font-awesome/etc... right? You can put gulp-rename in between the src and the dest to change path.relative which is where the filenames come from in .dest()
You could also use gulp-tap to modify file.path before the files get to .dest() and strip the extra path stuff
varcopy={sass: {src: ['vendors/bootstrap-sass-official/vendor/assets/stylesheets/*','vendors/font-awesome/scss/*'],dest: 'src/sass/vendors'}};gulp.task('copy-sass',function(){returngulp.src(copy.sass.src).pipe(tap(function(file){// get the relative path pre-transformvarrelative=file.relative;varvendorFolder=file.path.split('/')[1];// set the path to vendorFolder/fileNamefile.path=vendorFolder+relative;file.base=vendorFolder;})).pipe(gulp.dest(copy.sass.dest));});
Hello,
I would like to know if there is a better way to copy a bunch of sources to their own folders.
Here is what I wrote :
Basically, I grab my files from my vendors/ directory, then I copy them to my src/sass/vendors/ directory inside their vendors subfolders names.
For example :
vendors/font-awesome/scss/font-awesome.scss ----> src/sass/vendors/font-awesome/font-awesome.scss
Thanks in advance, and congratulations for this awesome tool !
The text was updated successfully, but these errors were encountered: