Skip to content

Instantly share code, notes, and snippets.

@vast
Created February 24, 2015 18:49
Show Gist options
  • Save vast/a5df37ff2667dd1dc783 to your computer and use it in GitHub Desktop.
Save vast/a5df37ff2667dd1dc783 to your computer and use it in GitHub Desktop.
gulp & postcss integration
gulp = require "gulp"
gutil = require "gulp-util"
plumber = require "gulp-plumber"
app_config = require "../config/application"
postprocessors = require "../config/postcss"
gulp.task "stylesheets", ["clean:stylesheets"], ->
gulp.src(app_config.paths.main_stylesheet)
.pipe(plumber())
.pipe(postcss(postprocessors))
.pipe(gulp.dest(app_config.buildpaths.assets))
app_config = require "./application"
autoprefixer = require "autoprefixer-core"
postcssVars = require "postcss-simple-vars"
postcssImport = require "postcss-import"
postcssNested = require "postcss-nested"
postcssMixins = require "postcss-mixins"
postcssColors = require "postcss-color-function"
module.exports = [
postcssImport(from: app_config.paths.main_stylesheet),
postcssMixins,
postcssNested,
postcssVars,
postcssColors(),
autoprefixer
]
@kadmil
Copy link

kadmil commented Feb 25, 2015

А как же calc? ;-)

@vast
Copy link
Author

vast commented Feb 25, 2015

@kadmill, ¯_(ツ)_/¯. Ты про calc()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment