module.exports = function(gulp, plugins, config, events, paths) {
    return function() {
        return gulp.src([
                paths.css.src + '/*.scss',
                paths.src + '/../../../src/modules/**/*.scss'
            ])
		    .pipe(plugins.plumber({
		        errorHandler: events.onError
		    }))
            .pipe(plugins.sourcemaps.init())
            .pipe(plugins.sassGlob())
            .pipe(plugins.sass({
                    outputStyle: 'nested',
                    includePaths: [
                        'node_modules/swiper/dist/css/',
                        'node_modules/foundation-sites/scss/',
                        'node_modules/motion-ui/src/',
                        'node_modules/normalize.css/'
                    ]
                })
                .on('error', plugins.sass.logError))
			.pipe(plugins.combineMq({
				beautify: false
			}))
            .pipe(plugins.autoprefixer({
                browsers: ['last 2 versions'],
                cascade: false
            }))
            .pipe(plugins.cleanCss())
            .pipe(plugins.sourcemaps.write('maps', {
                includeContent: false,
                sourceRoot: paths.css.src
            }))
            .pipe(plugins.rename(function(path) {
                path.basename += ".min";
            }))
            .pipe(gulp.dest(paths.css.dest))
            .pipe(plugins.browserSync.stream());
    };
};

@@ -1073,32 +1073,139 @@
   .pipe(plugins.
+rename(function(path) %7B%0A                path.basename += %22.min%22;%0A            %7D))%0A            .pipe(plugins.
 sourcemaps.write
@@ -1299,115 +1299,8 @@
 .src
-%0A            %7D))%0A            .pipe(plugins.rename(function(path) %7B%0A                path.basename += %22.min%22;
 %0A   

fix css map issue