Compare commits

...

2 Commits

@ -11,7 +11,13 @@ module.exports = function () {
var cacheKey = options.cacheKey != null ? options.cacheKey : "preset";
var streamList = [cache(cacheKey), sass()];
var streamList = [];
if (cacheKey !== false) {
streamList.push(cache(cacheKey));
}
streamList.push(sass());
if (options.livereload != null) {
streamList.push(livereloadPartial(options.livereload));

@ -1,6 +1,6 @@
{
"name": "@joepie91/gulp-preset-scss",
"version": "1.0.3",
"version": "1.1.0",
"description": "A Gulp preset for SCSS stylesheets",
"main": "index.js",
"scripts": {

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

Loading…
Cancel
Save