grunt-inline
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -9,3 +9,3 @@ { | ||
"description": "Inlines <img>, <script> and <link> tags into the same file.", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"keywords": [ | ||
@@ -12,0 +12,0 @@ "gruntplugin", |
@@ -196,2 +196,3 @@ # grunt-inline[![build status](https://secure.travis-ci.org/miniflycn/grunt-inline.png)](http://travis-ci.org/miniflycn/grunt-inline) | ||
## Release History | ||
* 2014-03-06 v0.2.6 bug fix: script tags like <script src="index.js?__inline">\n</script> were not inlined | ||
* 2014-01-31 v0.2.3 radded tag option, encode url(..) images. | ||
@@ -198,0 +199,0 @@ * 2013-10-31 v0.2.2 bug fix: img urls like 'background: url(http://www.example.com/img/bg.png)' will be transformed to 'background: url(url(http://www.example.com/img/bg.png))' |
/* | ||
* casper-inline | ||
* grunt-inline | ||
* https://github.com/chyingp/grunt-inline | ||
@@ -65,5 +65,5 @@ * | ||
function html(filepath, fileContent, relativeTo, options){ | ||
if(relativeTo){ | ||
filepath = filepath.replace(/[^\/]+\//g, relativeTo); | ||
} | ||
if(relativeTo){ | ||
filepath = filepath.replace(/[^\/]+\//, relativeTo); | ||
} | ||
@@ -70,0 +70,0 @@ fileContent = fileContent.replace(/<inline.+?src=["']([^"']+?)["']\s*?\/>/g, function(matchedWord, src){ |
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
76296
204