Skip to content
This repository has been archived by the owner on Apr 25, 2018. It is now read-only.

wunderio/gulp-task-postcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gulp task PostCSS

A gulp task for PostCSS processing.

Installation

npm install --save-dev wunderkraut/gulp-task-postcss

Usage

Basic usage

// Require gulp.
var gulp = require('gulp')

// Require task module and pass gulp to provide the gulp tasks.
require('gulp-task-postcss')(gulp)

Advanced usage

You can also pass a configuration to the task. This allows you to overwrite the default configuration and provide other configuration like a base path for your files.

gulpfile.js

var gulp = require('gulp')
var gulpConfig = require('./gulpconfig')

// Just pass the configuration object as second parameter.
require('gulp-task-postcss')(gulp, gulpConfig)

gulpconfig.js

module.exports = {
  // Basic configuration.
  basePath: '.',

  // Overwrite default configurations.
  stylesheets: {
    src: '/assets/postcss/**/*.css',
    dest: '/assets/css'
  }
}

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.