Breaking: requires node v10 to support dependency updates (previous required node 6.9+)
Breaking: requestTransform
replaced with requestResource
due to change from npm lib request to node-fetch
Credit to TrySound for changes
Add: Update datauri
Add: Skip inlining links that start with a #
Fixes: handling of empty srcs
Fixes: Skip inlining of srcs that are already data uris
Fixes: buffer.toString() encoding fix for nodejs 8
Fixes: Use rebaseRelativeTo
if it is defined; Fix to rebase urls that appear on the same line; Support fragment URLs when getting inline file path. PR Ref
Breaking: min engine is now v4.2; Feat: escape "</script>"
strings in script tags, improved multiline support
Breaking: Removed cssmin
option; Feat: New linkTransform
option which can replace cssmin, and is more flexible
Feat: SVG use
inlining; Feat: requestTransform; Fix: default gzip handling
Fix: HTTP status codes undefined
Enhancement: Strip value of data-inline(-ignore) attributes
Fix: Unescape HTML entities in the URLs extracted from attributes. Fix: Move callback outside of try
block
Fixes relativeTo support for images
Multiline support
Fixes to regex usage from PRs 3 and 4
Enhancement: add strict
option and change behavior to be false
by default. Previous behavior was equivalent to strict=true
.
Fix: pass file missing errors up through callbacks
use relativeTo with URLs to resolve web paths; use https: as default when paths start with //
initial release: Forked and rewritten from grunt-inline with the goal of providing additional use cases and a new API