mirror of
https://github.com/KevinMidboe/inline-html.git
synced 2025-12-08 20:29:06 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56a6f43657 | ||
|
|
d5c6a6b540 |
@@ -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:
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "inline-html",
|
"name": "inline-html",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "Embed local assets in an HTML document.",
|
"description": "Embed local assets in an HTML document.",
|
||||||
"repository": "panosoft/inline-html",
|
"repository": "panosoft/inline-html",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
@@ -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