     ))
     .pipe(cleancss())
     .pipe(header(headerCat, version))
-    .pipe(gulp.dest('./app/frontend/css/'))
-
+    .pipe(gulp.dest(config.style.dest))
 
 
 

###

gulp.task 'img_dev', ->
    gulp.src('./source/img/**/*')
        .pipe(changed('./app/frontend/img/'))
        .pipe(gulp.dest('./app/frontend/img/'))
        .pipe(reload(stream: true))


gulp.task 'img_build', ->
    gulp.src(['./source/img/**/*'])
        .pipe(teenypng('apikey': '0Q30pqGuD4mYEKXFcCzCXbgXK6MWK7rR'))
        .pipe(gulp.dest('./app/frontend/img/'))





###
#
#	CONFIG SECTION
#
###

path =
    src: './source/'
    dest: './app/'

config =
    style:
        src: [
            path.src + 'styl/[^-]*.styl'
            path.src + 'styl/fonts/[^-]*.styl'
        ]
        dest: path.dest + 'frontend/css/'
        watch: path.src + '**/*.styl'
    docs:
        src: path.src + 'styl/[^-]*.styl'
        dest: path.dest + 'docs/'
    tpl:
        src: path.src + 'tpl/*.jade'
        dest: path.dest
        watch: path.src + '**/*.jade'
    js:
        src:
            main: path.src + 'js/*.coffee'
            lib: path.src + 'js/lib/*.js'
        dest:
            main: path.dest + 'frontend/js/'
            lib: path.dest + 'frontend/js/lib/'
        watch: path.src + '**/*.{js,coffee}'
    img:
        src: path.src + 'img/**/*'
        dest: path.dest + 'frontend/img/'
        watch: path.src + 'img/**/*'



###
#
#	STYLUS SECTION
#
###

gulp.task 'stylus_dev', ->
    gulp.src(config.style.src)
    .pipe(plumber())
    .pipe(stylus())
    .pipe(base64(
