substacknodebrowserify

substacknodebrowserify,第1张

substack/node-browserify

Browserify

Make 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 some require()s in it:

var foo = require('./foo');

window.onload = function () {
    document.getElementById('result').innerHTML = foo(100);
};

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/2087259.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-07-22
下一篇 2022-07-22

发表评论

登录后才能评论

评论列表(0条)

保存