我正在使用 rollup.js 从文件“main.js”中转译模块依赖项
rollup main.js
是否有一个监视选项可以在源文件更改时重新运行转译
最佳答案
从 v0.29 开始,您可以使用 rollup --watch
。
不,还没有(command line options)。有一个issue opened for this just yesterday .
Rich-Harris 写道:
Agree. We intend to add some functionality around incremental builds (#191), and this would go hand-in-hand with that. The goal would be for the incremental build stuff to be flexible enough to integrate with existing build systems, but I think it'd make sense for the CLI to support it out of the box:
rollup -c --watch
关于javascript - 从命令行使用 rollup.js 时是否有监视选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33654682/