Sha256: c02025fe3358fa8400a2c334058d90c2e136e7311b3f0cf4cad6122f35e1d96d

Contents?: true

Size: 838 Bytes

Versions: 8

Compression:

Stored size: 838 Bytes

Contents

gulp          = require 'gulp'
browserSync   = require 'browser-sync'
sass          = require 'gulp-sass'
sourcemaps    = require 'gulp-sourcemaps'
minifyCSS     = require 'gulp-minify-css'
handleErrors  = require '../util/handleErrors'
config        = require('../config').sass
autoprefixer  = require 'gulp-autoprefixer'

gulp.task 'sass', ->
  gulp.src(config.src)
    .pipe sourcemaps.init()
    .pipe sass(config.settings).on('error', handleErrors)
    .pipe autoprefixer(browsers: [ 'last 2 version' ])
    .pipe sourcemaps.write()
    .pipe gulp.dest(config.dest)
    .pipe browserSync.reload(stream: true)

gulp.task 'sass:production', ->
  gulp.src(config.src)
    .pipe sass(config.settings).on('error', handleErrors)
    .pipe autoprefixer(browsers: [ 'last 2 version' ])
    .pipe minifyCSS()
    .pipe gulp.dest(config.dest)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
blueberry_rails-0.4.1 templates/gulp/tasks/sass.coffee
blueberry_rails-0.4.0 templates/gulp/tasks/sass.coffee
blueberry_rails-0.3.10 templates/gulp/tasks/sass.coffee
blueberry_rails-0.3.9 templates/gulp/tasks/sass.coffee
blueberry_rails-0.3.8 templates/gulp/tasks/sass.coffee
blueberry_rails-0.3.7 templates/gulp/tasks/sass.coffee
blueberry_rails-0.3.6 templates/gulp/tasks/sass.coffee
blueberry_rails-0.3.5 templates/gulp/tasks/sass.coffee