|
|
@ -9,10 +9,13 @@ const sass = require("gulp-sass");
|
|
|
|
module.exports = function(options = {}) {
|
|
|
|
module.exports = function(options = {}) {
|
|
|
|
let cacheKey = (options.cacheKey != null) ? options.cacheKey : "preset";
|
|
|
|
let cacheKey = (options.cacheKey != null) ? options.cacheKey : "preset";
|
|
|
|
|
|
|
|
|
|
|
|
let streamList = [
|
|
|
|
let streamList = [];
|
|
|
|
cache(cacheKey),
|
|
|
|
|
|
|
|
sass()
|
|
|
|
if (cacheKey !== false) {
|
|
|
|
];
|
|
|
|
streamList.push(cache(cacheKey));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
streamList.push(sass());
|
|
|
|
|
|
|
|
|
|
|
|
if (options.livereload != null) {
|
|
|
|
if (options.livereload != null) {
|
|
|
|
streamList.push(livereloadPartial(options.livereload));
|
|
|
|
streamList.push(livereloadPartial(options.livereload));
|
|
|
|