substack/node-browserify
BrowserifyMake node-style require() work in the browser, as if by magic!
Browserify generates a single static bundle that you can drop into your application with a single
<script>
tag. You can use browserify with any kind of web stack that can host up static files.Just write an
entry.js
to start with somerequire()
s in it:var foo = require('./foo'); window.onload = function () { document.getElementById('result').innerHTML = foo(100); };欢迎分享,转载请注明来源:内存溢出
评论列表(0条)