gulp-concat-css icon indicating copy to clipboard operation
gulp-concat-css copied to clipboard

Unable to maintain compressed state with concatenation.

Open eugeneross opened this issue 9 years ago • 1 comments
trafficstars

While running the gulp-ruby-sass task to convert .sass files to .css the style seems to be ignored while files are being concatenated. Example setup below that is returning concatenated files, but leaving them in the standard style.

// Styles
gulp.task('styles', function(){
  return sass('src/css/*.sass',{
    style: 'compressed'
  })
  .pipe(concatCss('style.css'))
  .on('error', errorLog)
  .pipe(autoprefixer({
    browsers: ['last 2 versions']
  }))
  .pipe(gulp.dest('build/css'))
  .pipe(browserSync.stream())
});

eugeneross avatar Feb 02 '16 04:02 eugeneross

+1

I was also troubled by this question, When I use it to merge multiple compressed CSS files, It automatically formats the code.

zhnoah avatar May 17 '19 07:05 zhnoah