0.0.4 • Published 9 years ago

task-scss v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Task-Sass

Compiles and watches all Scss-files.

npm install --save task-scss

If you have any idea on other tasks that you need in your project, just tell me and I will most likely create it for you :).

Configurations

Task will have the name 'sass:watch' and sass:build.

Build will build one time. Watch will build on change.

rootFile

The index file of you project.

output

Glop for the destination of the bundle.css file.

watch

Glop for watcher.

prefix

This is optional and will add browser flags for your css (-webkit- etc.). Change this to any value that works with autoprefixer.

Example:

require("task-sass")(gulp, {
  rootFile: './style/bundle.sass',
  output: dest + 'css/',
  watch: './style/**/*.sass'
})

Example for optional parameter:

require("task-sass")(gulp, {
  ...
  // optional (last 2 is the default, I will make the autoprefixer completely optional for those who like mixins more)
  prefix: ['last 2 versions'],
  ...
})