Skip to content
Permalink
Browse files

fix(minify): ensure css doesn't break the build on really large files

  • Loading branch information
jyounce committed Jul 11, 2015
1 parent 9b04f9e commit fdd3cee6d091119d60b4e2955d87cb6fd9c3a310
Showing with 2 additions and 1 deletion.
  1. +2 −1 tasks/minify/minify-css.coffee
@@ -2,12 +2,13 @@ module.exports = (gulp, config) ->
q = require 'q'
gulpif = require 'gulp-if'
minifyCss = require 'gulp-minify-css'
minOpts = advanced: false

runTask = (appOrRb) ->
defer = q.defer()
minify = config.minify.css.styles
gulp.src config.glob.dist[appOrRb].client.styles.all
.pipe gulpif minify, minifyCss()
.pipe gulpif minify, minifyCss minOpts
.pipe gulp.dest config.dist[appOrRb].client.styles.dir
.on 'end', ->
console.log "minified #{appOrRb} dist styles".yellow

0 comments on commit fdd3cee

Please sign in to comment.
You can’t perform that action at this time.