gulp-usemin
Advanced tools
Comparing version 0.3.29 to 0.3.30
@@ -48,2 +48,3 @@ module.exports = function(file, blocks, options, push, callback) { | ||
var cssCounter = 0; | ||
var htmlImportCounter = 0; | ||
var promises = blocks.map(function(block, i) { | ||
@@ -96,3 +97,5 @@ return new Promise(function(resolve) { | ||
push(file); | ||
html[i] += '<link rel="import" href="' + name.replace(path.basename(name), path.basename(file.path)) + '"/>'; | ||
var htmlImportAttributes = options ? options.htmlImportAttributes : null; | ||
html[i] += '<link rel="import" href="' + name.replace(path.basename(name), path.basename(file.path)) + '"' | ||
+ createHTMLAttributes(htmlImportAttributes, htmlImportCounter++) + ' />'; | ||
resolve(); | ||
@@ -99,0 +102,0 @@ }.bind(this, block.nameInHTML)); |
{ | ||
"name": "gulp-usemin", | ||
"version": "0.3.29", | ||
"version": "0.3.30", | ||
"description": "Replaces references to non-optimized scripts or stylesheets into a set of HTML files (or any templates/views).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -245,2 +245,5 @@ [![Build Status](https://travis-ci.org/zont/gulp-usemin.svg?branch=master)](https://travis-ci.org/zont/gulp-usemin) | ||
#####0.3.30 | ||
- Introduce html import attributes (by jackw) | ||
#####0.3.29 | ||
@@ -247,0 +250,0 @@ - Migrate gulp-util to individual modules (by pioug) |
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
53229
884
366