Budo在浏览器化和使用 livereload 运行方面做得很好。但它默认使用 index.html
。这使得使用多个 html 文件不太方便。是否可以针对自定义 html 文件运行它?
它提到接受所有 browserify 选项,但我找不到相关选项。
最佳答案
您可以使用 dir
标志指向您存放不同 index.html 文件的自定义路径:
例如:budo index.js --dir myCustomBudoDir
这将从您的 myCustomBudoDir
目录提供您的 index.html
关于javascript - 如何使用 budo(或 browserify)运行自定义 html 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43674851/