Browserify multiple files into a single bundle

若如初见. 提交于 2019-12-07 16:07:13

问题


Currently, I browserify a single js file into a bundle.js

$ browserify X1.js --standalone XXX > bundle.js

What if I have multiple js files and want to join them into a single browserified bundle.js

How should the command look like? Can I do something like this?

$ browserify X1.js X2.js --standalone XXX > bundle.js

I am using node.js v6


回答1:


You have already answered your own question. I confirm that it is correct.

$ browserify X1.js X2.js --standalone XXX > bundle.js


来源:https://stackoverflow.com/questions/40484355/browserify-multiple-files-into-a-single-bundle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!