gobble-ractive:使用 gobble 编译 Ractive.js 组件

时间:2021-06-09 19:54:17
【文件属性】:
文件名称:gobble-ractive:使用 gobble 编译 Ractive.js 组件
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-09 19:54:17
JavaScript 狼吞虎咽 使用 gobble 编译 Ractive.js 组件。 安装 首先,您需要安装 gobble - 有关详细信息,请参阅。 然后, npm i -D gobble-ractive 用法 gobblefile.js var gobble = require ( 'gobble' ) ; module . exports = gobble ( 'ractive_components' ) . map ( 'ractive' , { type : 'amd' } ) ; 支持的输出类型是amd 、 cjs (即 node.js 模块)或es6 。 如果省略第二个参数,则amd是默认类型。 示例 鉴于此目录结构: ./gobblefile.js ./src/component/some-component.html ./src/js/app.js 然后,gobblefile.j
【文件预览】:
gobble-ractive-master
----README.md(1KB)
----.gitignore(23B)
----index.js(637B)
----CHANGELOG.md(256B)
----package.json(429B)

网友评论