Commit a5078884 authored by Terion's avatar Terion

icons styles

parent 5ef613fa
......@@ -3,13 +3,14 @@ gulp = require 'gulp'
gulp.task 'icons', ->
iconfont = require 'gulp-iconfont'
iconfontCss = require 'gulp-iconfont-css'
sass = require 'gulp-sass'
runTimestamp = Math.round( / 1000)
gulp.src 'src/img/icons/*.svg'
fontName: 'icons',
#path: 'app/assets/css/templates/_icons.scss', # path to css template
targetPath: '../../css/icons.css',
path: 'node_modules/gulp-iconfont-css/templates/_icons.scss',
targetPath: '../../css/icons.scss',
fontPath: '../fonts/icons/'
......@@ -18,6 +19,17 @@ gulp.task 'icons', ->
formats: ['ttf', 'eot', 'woff', 'svg'],
timestamp: runTimestamp
.on('glyphs', (glyphs, options)->
.on('finish', ->
# this is very hacky, but we don't have a sync interface here
# and there is no event on SCSS file created
# so we simply wait while FS write will be finished
setTimeout ( ->
gulp.src 'build/css/icons.scss'
.pipe sass({
outputStyle: 'expanded'
comments: false
}).on('error', sass.logError)
.pipe gulp.dest 'build/css'
), 250
.pipe gulp.dest 'build/fonts/icons'
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment