【文件属性】:
文件名称:stringifile:愚蠢的模块要求将文件内容包装在xml标记中
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-27 13:20:54
JavaScript
字符串文件
用于将请求文件内容包装在xml标记中的节点模块
展示:关键CSS路径
server.js
var stringifile = require ( 'stringifile' ) ;
var criticalCss = stringifile ( 'critical.css' , 'style' , './styles/' ) ;
index.html
<!DOCTYPE html >
< html lang =" en " >
< head >
< meta charset =" UTF-8 " >
< title > Document </ title >
{{CRITICAL_CSS}}
</ head >
< body >
</ body >
</ html >
要观看现场演示:
$ cd showcase
【文件预览】:
stringifile-master
----.travis.yml(61B)
----showcase()
--------index.js(213B)
--------package.json(289B)
--------server.js(349B)
--------styles()
----index.js(981B)
----package.json(1KB)
----md()
--------docs.md(510B)
--------intro.md(792B)
----tests()
--------index.js(1KB)
--------styles.css(28B)
----.gitignore(26B)
----README.md(1KB)