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

grunt-combo-html-css-js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-combo-html-css-js - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

6

package.json
{
"name": "grunt-combo-html-css-js",
"description": "Combine css links and javscript files to html file with inline tags automatically",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/jinjiang/grunt-combo-html-css-js",

@@ -36,3 +36,3 @@ "author": {

"peerDependencies": {
"grunt": "~0.4.5"
"grunt": ">=0.4.0"
},

@@ -42,2 +42,2 @@ "keywords": [

]
}
}

@@ -61,6 +61,9 @@ # grunt-combo-html-css-js

comboall: {
files: {
'dest/combo.html': ['src/target.html'],
},
},
main:{
files: [
{'dest/combo.html': ['src/target.html']}
]
}
}
});

@@ -67,0 +70,0 @@ ```

@@ -26,4 +26,4 @@ /*

function combo(filepath) {
var cssHrefPattern = /<link(?:[^>]*) href="(.+)"(?:[^>]*)>/g;
var jsSrcPattern = /<script(?:[^>]*) src="(.+)"(?:[^>]*)>/g;
var cssHrefPattern = /<link(?:[^>]*) href="([^"]+)"(?:[^>]*)>/g;
var jsSrcPattern = /<script(?:[^>]*) src="([^"]+)"(?:[^>]*)>/g;

@@ -33,3 +33,3 @@ var html = grunt.file.read(filepath);

html = html.replace(cssHrefPattern, function (openTag, href) {
if (href.match(/\:/)) {
if (href.match(/\/\//)) {
return openTag;

@@ -41,3 +41,3 @@ }

html = html.replace(jsSrcPattern, function (openTag, src) {
if (src.match(/\:/)) {
if (src.match(/\/\//)) {
return openTag;

@@ -44,0 +44,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