Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-usemin

Package Overview
Dependencies
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-usemin - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

9

lib/htmlprocessor.js

@@ -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);

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc