{"size": 763, "ext": "js", "max_stars_repo_path": "gulpTasks/styles.js", "max_stars_repo_name": "RamonFrancisco/ramon.github.io", "max_stars_repo_stars_event_min_datetime": "2019-06-24T23:37:32.000Z", "max_stars_repo_stars_event_max_datetime": "2019-06-24T23:37:32.000Z", "max_issues_repo_path": "gulpTasks/styles.js", "max_issues_repo_name": "RamonFrancisco/ramon.github.io", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gulpTasks/styles.js", "max_forks_repo_name": "RamonFrancisco/ramon.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.4333333333, "max_line_length": 74, "alphanum_fraction": 0.5897771953}
module.exports = function (gulp, $, _) {

	const   cssnano = require('cssnano'),
		    autoprefixer = require('autoprefixer');

	const styles = () => {
		return gulp.src(_.getPath('styles'))
			.pipe($.plumber())
			.pipe($.util.env.production ? $.util.noop() : $.sourcemaps.init())
			.pipe($.sass({
				errLogToConsole: true,
				outputStyle: $.util.env.production ? 'compressed' : 'nested',
				includePaths: [
					'src/styles',
					'node_modules/'
				]
			}).on('error', $.sass.logError))
			.pipe($.postcss([
				autoprefixer(),
				cssnano({
					zindex: false,
					reduceIdents: false
				})
			]))
			.pipe(!$.util.env.production ? $.sourcemaps.write('.') : $.util.noop())
			.pipe(gulp.dest(_.paths.dest.styles));
	};

	return gulp.series(styles);
};