Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to maintain compressed state with concatenation. #33

Open
eugeneross opened this issue Feb 2, 2016 · 1 comment
Open

Unable to maintain compressed state with concatenation. #33

eugeneross opened this issue Feb 2, 2016 · 1 comment

Comments

@eugeneross
Copy link

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())
});
@zhnoah
Copy link

zhnoah commented May 17, 2019

+1

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants