最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is there a watch option when using rollup.js from the command line - Stack Overflow

programmeradmin1浏览0评论

I am using rollup.js to transpile the module dependencies from a file 'main.js'

rollup main.js

Is there a watch option to rerun the transpilation when a source file changes

I am using rollup.js to transpile the module dependencies from a file 'main.js'

rollup main.js

Is there a watch option to rerun the transpilation when a source file changes

Share Improve this question edited Nov 11, 2015 at 16:59 Felix Kling 818k181 gold badges1.1k silver badges1.2k bronze badges asked Nov 11, 2015 at 16:05 Peter SaxtonPeter Saxton 4,6766 gold badges35 silver badges54 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

As of v0.29 you can use rollup --watch.


No there is not yet (mand line options). There has been an issue opened for this just yesterday.

Rich-Harris wrote:

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
发布评论

评论列表(0)

  1. 暂无评论