gulp-community / gulp-concat

Streaming concat middleware for gulp
MIT License
792 stars 127 forks source link

Don't work when trying to pass various files in order to gulp.src #112

Closed goldsteinr closed 8 years ago

goldsteinr commented 8 years ago

I`m trying to concat files in a specific order. So i follow the info to put each file inside [' ']:

gulp.task('concat', function () {
  return gulp.src(['./stylesheets/framework/initialize.scss',
                  './stylesheets/framework/grid.scss',
                  './stylesheets/framework/utilities.scss',
                  './stylesheets/framework/typography.scss',
                  './stylesheets/framework/icons.scss',
                  './stylesheets/framework/navigation.scss',
                  './stylesheets/framework/slider.scss',
                  './stylesheets/framework/forms-tables.scss',
                  './stylesheets/theme/general.scss',
                  './stylesheets/theme/header.scss',
                  './stylesheets/theme/footer.scss',
                  './stylesheets/partials/searchbar.scss',
                  './stylesheets/partials/product-grid.scss',
                  './stylesheets/partials/breadcrumbs.scss',
                  './stylesheets/partials/pagination.scss',
                  './stylesheets/partials/modal.scss',
                  './stylesheets/partials/social-share.scss',
                  './stylesheets/partials/rich-text-content-editor.scss',
                  './stylesheets/templates/index.scss',
                  './stylesheets/templates/collections-lists.scss',
                  './stylesheets/templates/collection.scss',
                  './stylesheets/templates/product.scss',
                  './stylesheets/templates/pages.scss',
                  './stylesheets/templates/search.scss',
                  './stylesheets/templates/blog-article.scss',
                  './stylesheets/templates/cart.scss',
                  './stylesheets/templates/customer-accounts.scss',
                  './stylesheets/templates/about-us.scss',
                  './stylesheets/templates/faq.scss',
                  './stylesheets/templates/our-fight.scss',
                  './stylesheets/templates/policies.scss',
                  './stylesheets/templates/wholesale.scss',
                  './stylesheets/tests-utilities/tests.scss',
                  './stylesheets/trumps/trumps.scss',
                  './stylesheets/vendors/select2.scss'
                  ])
    .pipe(concat('all.scss'))
    .pipe(gulp.dest('./stylesheets/'));
});

The task finishes but no file is generated.

yocontra commented 8 years ago

Do those files exist? Pipe to gulp-debug

goldsteinr commented 8 years ago

the files exits, but my it was my bad. I thought it worked as sass partials, forgot the underscore (_).