grunt-usemin
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -120,2 +120,8 @@ 'use strict'; | ||
} | ||
// preserve media attribute | ||
var media = l.match(/media=['"]([^'"]+)['"]/); | ||
if (media) { | ||
last.media = media[1]; | ||
} | ||
} | ||
@@ -176,3 +182,4 @@ last.raw.push(l); | ||
if (block.type === 'css') { | ||
result = block.indent + '<link rel="stylesheet" href="' + dest + '">'; | ||
var media = block.media ? ' media="' + block.media + '"' : ''; | ||
result = block.indent + '<link rel="stylesheet" href="' + dest + '"' + media + '>'; | ||
} else if (block.requirejs !== undefined) { | ||
@@ -179,0 +186,0 @@ var dataMain = path.relative(this.relativeSrc, block.requirejs.dest); |
{ | ||
"name": "grunt-usemin", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"description": "Grunt task replaces references to non-optimized scripts or stylesheets into a set of HTML files (or any templates/views).", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -177,3 +177,3 @@ 'use strict'; | ||
options.baseUrl = options.baseUrl || block.requirejs.baseUrl; | ||
options.mainConfigFile = path.join(options.baseUrl, options.name) + '.js'; | ||
options.mainConfigFile = options.mainConfigFile || path.join(options.baseUrl, options.name) + '.js'; | ||
} else { | ||
@@ -184,3 +184,3 @@ task.options = { | ||
baseUrl: block.requirejs.baseUrl, | ||
mainConfigFile: path.join(block.requirejs.baseUrl, block.requirejs.name) + '.js' | ||
mainConfigFile: block.requirejs.mainConfigFile || path.join(block.requirejs.baseUrl, block.requirejs.name) + '.js' | ||
}; | ||
@@ -187,0 +187,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
28254
594