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 :).
Task will have the name 'sass:watch'
and sass:build
.
Build will build one time. Watch will build on change.
The index file of you project.
Glop for the destination of the bundle.css file.
Glop for watcher.
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'],
...
})