Skip to content

Silom/task-sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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'],
  ...
})

About

Gulp task for sass, ready to use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published