Created
February 24, 2015 18:49
-
-
Save vast/a5df37ff2667dd1dc783 to your computer and use it in GitHub Desktop.
gulp & postcss integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
А как же calc? ;-)