initial commit

This commit is contained in:
air66
2019-07-24 18:16:32 +01:00
commit 5efebf4ded
8591 changed files with 899103 additions and 0 deletions

35
node_modules/@gulp-sourcemaps/identity-map/index.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
'use strict';
var through = require('through2');
var normalizePath = require('normalize-path');
var generate = require('./lib/generate');
function identityMap() {
function transform(file, _, cb) {
if (!file.sourceMap || !file.isBuffer()) {
return cb(null, file);
}
var sourcePath = normalizePath(file.relative);
var contents = file.contents.toString();
switch (file.extname) {
case '.js': {
file.sourceMap = generate.js(sourcePath, contents);
break;
}
case '.css': {
file.sourceMap = generate.css(sourcePath, contents);
break;
}
}
cb(null, file);
}
return through.obj(transform);
}
module.exports = identityMap;