【文件属性】:
文件名称:koa-watchify:将 browserify 或 watchify 实例包装到 koa 中间件中
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-23 08:17:50
JavaScript
koa-watchify
包装在或例如成兴亚中间件。
安装
$ npm install koa-watchify
用法
const wreq = require ( 'koa-watchify' )
const watchify = require ( 'watchify' )
const path = require ( 'path' )
const koa = require ( 'koa' )
const app = koa ( )
var bundle = browserify ( {
entries : [ path . join ( process . cwd ( ) , 'index.js' ) ] ,
fullPaths : true ,
packageCache : { } ,
cache : { }
} )
if
【文件预览】:
koa-watchify-master
----.travis.yml(135B)
----.eslintrc(768B)
----index.js(685B)
----test.js(203B)
----package.json(676B)
----LICENSE(1KB)
----.gitignore(164B)
----README.md(2KB)
----.editorconfig(207B)