Skip to content

Instantly share code, notes, and snippets.

@cognitom
Created June 1, 2014 05:26
Show Gist options
  • Select an option

  • Save cognitom/b95c3e0842ec8d7d8cd1 to your computer and use it in GitHub Desktop.

Select an option

Save cognitom/b95c3e0842ec8d7d8cd1 to your computer and use it in GitHub Desktop.
gulp 3.7 リリース: CoffeeScriptネイティブに ref: http://qiita.com/cognitom/items/4468723674199cf5f9a5
{
<略>
"devDependencies": {
"coffee-script": "*",
}
}
gulp = require 'gulp'
autoprefixer = require 'gulp-autoprefixer'
minifyCss = require 'gulp-minify-css'
rename = require 'gulp-rename'
gulp.task 'css', ->
gulp.src './css/styles.css'
.pipe autoprefixer 'last 2 versions'
.pipe minifyCss keepSpecialComments: 0
.pipe rename extname: '.min.css'
.pipe gulp.dest './css/'
{
'.co': 'coco',
'.coffee': 'coffee-script/register',
'.iced': 'iced-coffee-script/register',
'.js': null,
'.litcoffee': 'coffee-script/register',
'.ls': 'livescript'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment