【文件属性】:
文件名称:reshape-html-modules:在HTML中使用HTML模块
文件大小:14KB
文件格式:ZIP
更新时间:2021-05-18 02:46:04
JavaScript
重塑来源
可让您使用HTML进行此操作。
< example>
<!-- becomes -->
< example>
用法
将“和“添加到您的构建工具中:
npm install reshape reshape-source --save-dev
节点
使用来处理您HTML:
import reshape from 'reshape' ;
import reshapeSource from 'reshape-source' ;
reshape ( {
plugins : [ reshapeSource ( /* options */ ) ]
} ) . process ( YOUR_HTML ) ;
Webpack
将添加到您的构建工具中:
npm install reshape-loader --save-dev
在Webpack配置中使用Reshape :
【文件预览】:
reshape-html-modules-master
----.travis.yml(124B)
----.rollup.js(283B)
----index.js(202B)
----.tape.js(98B)
----package.json(1KB)
----test()
--------basic.result.html(680B)
--------basic.expect.html(680B)
--------basic.html(816B)
--------_components.html(338B)
----CONTRIBUTING.md(2KB)
----LICENSE.md(7KB)
----.gitignore(127B)
----CHANGELOG.md(73B)
----lib()
--------jsdom-fragment-native.js(330B)
--------transform-custom-elements.js(854B)
--------jsdom-polyfill.js(1KB)
--------define-element-functions.js(399B)
--------custom-element-functions.js(191B)
--------fetch-native.js(120B)
--------link-html-element-functions.js(928B)
--------fetch.js(301B)
--------reshape-polyfill.js(2KB)
--------jsdom-fragment.js(166B)
----README.md(2KB)
----.editorconfig(226B)