gulp-pre-combo
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -42,5 +42,5 @@ /** | ||
} | ||
var commentMarker = 'unUseComboMaker'; | ||
var regStart = new RegExp('<!--\\s*' + commentMarker + '\\s*-->'); | ||
var regEnd = new RegExp('(?:<!--\\s*)*\\/' + commentMarker + '\\s*-->'); | ||
// var commentMarker = 'unUseComboMaker'; | ||
// var regStart = new RegExp('<!--\\s*' + commentMarker + '\\s*-->'); | ||
// var regEnd = new RegExp('(?:<!--\\s*)*\\/' + commentMarker + '\\s*-->'); | ||
var lines = chunk.replace(/\r\n/g, '\n').split(/\n/); | ||
@@ -50,11 +50,12 @@ var inside = false; | ||
lines.forEach(function (line) { | ||
var build = regStart.test(line); | ||
var endbuild = regEnd.test(line); | ||
if (build) { | ||
inside = true; | ||
} | ||
if (endbuild) { | ||
inside = false; | ||
} | ||
if (!inside) { | ||
// var build = regStart.test(line); | ||
// var endbuild = regEnd.test(line); | ||
// if (build) { | ||
// inside = true; | ||
// } | ||
// if (endbuild) { | ||
// inside = false; | ||
// } | ||
if (!(line.match('data-ignore="true"') || line.match('data-ignore=\'true\''))) { | ||
line = line.replace(/<script[^>]+?src="([^"]+)"[^>]*><\/script>/igm, function ($, $1) { | ||
@@ -61,0 +62,0 @@ if ($1.indexOf('http://') > -1) { |
{ | ||
"name": "gulp-pre-combo", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "A gulp plugin to handle relative-path in html file.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
@@ -42,6 +42,4 @@ # gulp-pre-combo | ||
<link rel="stylesheet" type="text/css" href="./index2.css"> | ||
<!-- unUseComboMaker --> | ||
<link rel="stylesheet" type="text/css" href="./index3.css"> | ||
<link rel="stylesheet" type="text/css" href="./index4.css"> | ||
<!-- /unUseComboMaker --> | ||
<link rel="stylesheet" type="text/css" href="./index3.css" data-ignore="true"> | ||
<link rel="stylesheet" type="text/css" href="./index4.css" data-ignore="true"> | ||
<link rel="stylesheet" type="text/css" href="./index5.css"> | ||
@@ -68,6 +66,4 @@ <link rel="stylesheet" type="text/css" href="./index6.css"> | ||
<link rel="stylesheet" type="text/css" href="GROUPNAME/REPONAME/VERSION/PATH/TO/FILE/index2.min.css"> | ||
<!-- unUseComboMaker --> | ||
<link rel="stylesheet" type="text/css" href="./index3.css"> | ||
<link rel="stylesheet" type="text/css" href="./index4.css"> | ||
<!-- /unUseComboMaker --> | ||
<link rel="stylesheet" type="text/css" href="./index3.css" data-ignore="true"> | ||
<link rel="stylesheet" type="text/css" href="./index4.css" data-ignore="true"> | ||
<link rel="stylesheet" type="text/css" href="GROUPNAME/REPONAME/VERSION/PATH/TO/FILE/index5.min.css"> | ||
@@ -74,0 +70,0 @@ <link rel="stylesheet" type="text/css" href="GROUPNAME/REPONAME/VERSION/PATH/TO/FILE/index6.min.css"> |
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
6547
80