mirror of
https://github.com/KevinMidboe/inline-html.git
synced 2025-10-29 17:40:29 +00:00
Updated license.
This commit is contained in:
@@ -5,6 +5,7 @@ Embed local assets in an HTML document.
|
||||
[]()
|
||||
[]()
|
||||
[]()
|
||||
[]()
|
||||
[]()
|
||||
|
||||
## Installation
|
||||
@@ -22,24 +23,24 @@ This:
|
||||
|
||||
Turns this:
|
||||
|
||||
<link rel="stylesheet/less" href="main.less" />
|
||||
<link rel="stylesheet/less" href="main.less"/>
|
||||
<style>
|
||||
div { background-image: url('path/to/file'); }
|
||||
</style>
|
||||
<div style="background-image: url('path/to/file');"></div>
|
||||
<img src="path/to/file" />
|
||||
<img src="path/to/file"/>
|
||||
|
||||
Into this:
|
||||
|
||||
<style>
|
||||
@font-face { src: url('data:...'); }
|
||||
div { background-image: url('data:...'); }
|
||||
div { background-image: url('data:...'); }
|
||||
</style>
|
||||
<style>
|
||||
div { background-image: url('data:...'); }
|
||||
</style>
|
||||
<div style="background-image: url('data:...');"></div>
|
||||
<img src="data:..." />
|
||||
<img src="data:..."/>
|
||||
|
||||
Where:
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"cheerio": "^0.19.0",
|
||||
"co": "^4.6.0",
|
||||
|
||||
Reference in New Issue
Block a user