Added Gulp.js for compiling SCSS stylesheets
This commit is contained in:
22
node_modules/vinyl-fs/lib/src/prepare.js
generated
vendored
Normal file
22
node_modules/vinyl-fs/lib/src/prepare.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
var through = require('through2');
|
||||
|
||||
function prepareRead(optResolver) {
|
||||
|
||||
function normalize(file, enc, callback) {
|
||||
|
||||
var since = optResolver.resolve('since', file);
|
||||
|
||||
// Skip this file if since option is set and current file is too old
|
||||
if (file.stat && file.stat.mtime <= since) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
return callback(null, file);
|
||||
}
|
||||
|
||||
return through.obj(normalize);
|
||||
}
|
||||
|
||||
module.exports = prepareRead;
|
Reference in New Issue
Block a user