<commit_before>/*
 * @title Styles
 * @description A task to compile Sass to CSS
 * @example (cli) gulp styles
 */


/*********************************************************************************
 1. DEPENDENCIES
 *********************************************************************************/

import autoprefixer from 'autoprefixer';
import csso from 'gulp-csso';
import cache from 'gulp-cached';
import gulpif from 'gulp-if';
import postcss from 'gulp-postcss';
import rev from 'gulp-rev';
import sass from 'gulp-sass';
import sourcemaps from 'gulp-sourcemaps';


/*********************************************************************************
 2. TASK
 *********************************************************************************/

export default () => {

  const autoprefixerConfig = {
    browsers: [
      'IE >= 9',
      'last 1 Firefox versions',
      'last 1 Chrome versions',
      'last 1 Safari versions',
      'iOS >= 7.1'
    ]
  };

  return gulp
    .src(`${ sharedPaths.srcDir }/sass/*.scss`)
    .pipe(plumber({errorHandler: sharedEvents.onError}))
    .pipe(gulpif(options.env === 'dev', cache('styles')))
    .pipe(gulpif(options.env === 'dev', sourcemaps.init()))
    .pipe(sass())
    .pipe(postcss([autoprefixer(autoprefixerConfig)]))
    .pipe(gulpif(options.env === 'dev', sourcemaps.write()))
    .pipe(gulpif(options.env !== 'dev', csso()))
    .pipe(gulpif(options.env !== 'dev', rev()))
    .pipe(gulp.dest(sharedPaths.outputDir + '/css'));
};<commit_msg>fix(gulp): removing `cache` from style task as it doesn't work  concaving files together and sass already has built in caching<commit_after>/*
 * @title Styles
 * @description A task to compile Sass to CSS
 * @example (cli) gulp styles
 */


/*********************************************************************************
 1. DEPENDENCIES
 *********************************************************************************/

import autoprefixer from 'autoprefixer';
import csso from 'gulp-csso';
import cache from 'gulp-cached';
import gulpif from 'gulp-if';
import postcss from 'gulp-postcss';
import rev from 'gulp-rev';
import sass from 'gulp-sass';
import sourcemaps from 'gulp-sourcemaps';


/*********************************************************************************
 2. TASK
 *********************************************************************************/

export default () => {

  const autoprefixerConfig = {
    browsers: [
      'IE >= 9',
      'last 1 Firefox versions',
      'last 1 Chrome versions',
      'last 1 Safari versions',
      'iOS >= 7.1'
    ]
  };

  return gulp
    .src(`${ sharedPaths.srcDir }/sass/*.scss`)
    .pipe(plumber({errorHandler: sharedEvents.onError}))
    .pipe(gulpif(options.env === 'dev', sourcemaps.init()))
    .pipe(sass())
    .pipe(postcss([autoprefixer(autoprefixerConfig)]))
    .pipe(gulpif(options.env === 'dev', sourcemaps.write()))
    .pipe(gulpif(options.env !== 'dev', csso()))
    .pipe(gulpif(options.env !== 'dev', rev()))
    .pipe(gulp.dest(sharedPaths.outputDir + '/css'));
};
{'fraction_non_alphanumeric': 0.3436785364260046, 'fraction_numerical': 0.005227049983665469, 'mean_word_length': 4.702048417132216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4605319', 'n_tokens_mistral': 919, 'n_tokens_neox': 878, 'n_words': 212}