gulp-inject
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"name": "gulp-inject", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "A javascript, stylesheet and webcomponent injection plugin for Gulp, i.e. inject file references into your index.html", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -43,3 +43,3 @@ # gulp-inject [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url] | ||
var gulp = require('gulp'); | ||
var inject = require("gulp-inject"); | ||
var inject = require('gulp-inject'); | ||
@@ -46,0 +46,0 @@ gulp.task('index', function () { |
@@ -113,3 +113,3 @@ 'use strict'; | ||
function resolve (cb) { | ||
process.nextTick(function () { | ||
setImmediate(function () { | ||
cb(collection); | ||
@@ -187,3 +187,5 @@ }); | ||
function injector (match, starttag, indent, content, endtag) { | ||
return [starttag] | ||
var starttagArray = opt.removeTags ? [] : [starttag]; | ||
var endtagArray = opt.removeTags ? [] : [endtag]; | ||
return starttagArray | ||
.concat(files.reduce(function transformFile (lines, file, i) { | ||
@@ -197,3 +199,3 @@ var filepath = getFilepath(file, target, opt); | ||
}, [])) | ||
.concat([endtag]) | ||
.concat(endtagArray) | ||
.join(indent); | ||
@@ -200,0 +202,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35669
452