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
|
## Installation
|
||||||
@@ -22,24 +23,24 @@ This:
|
|||||||
|
|
||||||
Turns this:
|
Turns this:
|
||||||
|
|
||||||
<link rel="stylesheet/less" href="main.less" />
|
<link rel="stylesheet/less" href="main.less"/>
|
||||||
<style>
|
<style>
|
||||||
div { background-image: url('path/to/file'); }
|
div { background-image: url('path/to/file'); }
|
||||||
</style>
|
</style>
|
||||||
<div style="background-image: url('path/to/file');"></div>
|
<div style="background-image: url('path/to/file');"></div>
|
||||||
<img src="path/to/file" />
|
<img src="path/to/file"/>
|
||||||
|
|
||||||
Into this:
|
Into this:
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@font-face { src: url('data:...'); }
|
@font-face { src: url('data:...'); }
|
||||||
div { background-image: url('data:...'); }
|
div { background-image: url('data:...'); }
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
div { background-image: url('data:...'); }
|
div { background-image: url('data:...'); }
|
||||||
</style>
|
</style>
|
||||||
<div style="background-image: url('data:...');"></div>
|
<div style="background-image: url('data:...');"></div>
|
||||||
<img src="data:..." />
|
<img src="data:..."/>
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cheerio": "^0.19.0",
|
"cheerio": "^0.19.0",
|
||||||
"co": "^4.6.0",
|
"co": "^4.6.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user