text: "use strict";
  
  import path from "path";
  import autoprefixer from "autoprefixer";
  import gulpif from "gulp-if";
  import concat from "gulp-concat";
  
  module.exports = function (
  	gulp,
  	setgulp,
  	plugins,
  	config,
  	target,
  	browserSync
  ) {
  	let url = config;
  	let dest = path.join(target, url.styles.assets);
  
  	let arraySassList = [];
  
  	arraySassList.push(
  		"!" +
  			path.join(
  				url.source,
  				url.styles.sass,
  				url.concat.ACTIVE_CONCAT
  					? url.ignore.sassactiveconcat
  					: url.ignore.sass
  			)
  	);
  	arraySassList.push(
  		path.join(url.source, url.styles.sass, "**/*.{sass,scss}")
  	);
  	arraySassList.push(url.src2 + "/_core/index.sass");
  	arraySassList.push(path.join(url.src2, "**/index.{sass,scss}"));
  	arraySassList.push("!" + path.join(url.source, "{**/_*,**/_*/**}"));
  	// Run task
  	gulp.task("sass-dev", () => {
  		var autoprefixerOpts = {
  			cascade: false,
  		};
  
  		return gulp.src(arraySassList)
  			.pipe(plugins.plumber())
  			.pipe(gulpif(!setgulp.production, plugins.sourcemaps.init()))
  			.pipe(
  				plugins
  					.sass({
  						outputStyle: "expanded",
  						precision: 10,
  						includePaths: [
  							// 'node_modules/ionic-angular/',
  							// 'node_modules/ionicons/dist/scss',
  							path.join(url.source, url.styles.sass),
  						],
  					})
  					.on("error", function (err) {
  						plugins.util.log(err);
  					})
  					.on(
  						"error",
  						plugins.notify.onError(config.defaultNotification)
  					)
  			)
  			.pipe(concat("maindev.css"))
  			.pipe(plugins.postcss([autoprefixer(autoprefixerOpts)]))
  			.pipe(gulpif(!setgulp.production, plugins.sourcemaps.init()))
  			.pipe(gulpif(!setgulp.production, plugins.sourcemaps.write("./")))
  			.pipe(plugins.changed(dest))
  			.pipe(gulp.dest(dest))
  			.pipe(
  				browserSync.stream({
  					match: "**/*.css",
  				})
  			);
  	});
  };
  