 
 config =
     style:
-        src: [
-            path.src + 'styl/[^-]*.styl'
-            path.src + 'styl/fonts/[^-]*.styl'
-        ]
+        src:
+            main: path.src + 'styl/[^-]*.styl'
+            fonts: path.src + 'styl/fonts/[^-]*.styl'
         dest: path.dest + 'frontend/css/'
         watch: path.src + '**/*.styl'
     docs:

###

gulp.task 'stylus_dev', ->
    gulp.src(config.style.src)
    .pipe(plumber())
    .pipe(stylus())
    .pipe(base64(
        extensions: ['woff']
        maxImageSize: 1024 * 1024 * 10 # 10 mb
    ))
    .pipe(urlAdjuster(
        replace: ['../../img/', '../img/']
    ))
    .pipe(autoprefixer(
        browser: ['> 5%', 'last 2 versions']
    ))
    .pipe(gulp.dest(config.style.dest))
    .pipe(reload(stream: true))


gulp.task 'stylus_build', ->
    gulp.src(config.style.src)
    .pipe(plumber())
    .pipe(stylus())
    .pipe(base64(
        extensions: ['woff']
        maxImageSize: 1024 * 1024 * 10 # 10 mb
    ))
    .pipe(urlAdjuster(
        replace: ['../../img/', '../../app/frontend/img/']
    ))
    .pipe(base64(
        extensions: ['png', 'svg', 'jpg']
        maxImageSize: 1024 * 1024 # 1 mb
    ))
    .pipe(urlAdjuster(
        replace: ['../../app/frontend/img/','../img/']
    ))
    .pipe(autoprefixer(
        browser: ['> 5%', 'last 2 versions']
    ))
    .pipe(cleancss())
    .pipe(header(headerCat, version))
    .pipe(gulp.dest(config.style.dest))




    gulp.src(config.img.src)
        .pipe(changed(config.img.dest))
        .pipe(gulp.dest(config.img.dest))


gulp.task 'img_build', ->
