Install
npm install require-dynamic-exec -D
Useage
require('require-dynamic-exec').watch(__dirname,true)
如何配合 express
来实现路由热更新请看 './test/express/index.js'
hot require
Homepage Repository npm JavaScript Download
npm install require-dynamic-exec@1.2.20
npm install require-dynamic-exec -D
require('require-dynamic-exec').watch(__dirname,true)
如何配合 express
来实现路由热更新请看 './test/express/index.js'