is there a coffeescript auto compile / file watcher for windows?

前端 未结 9 2131
攒了一身酷
攒了一身酷 2021-02-19 16:01

I\'d like to play around with integrating coffeescript into my dev process. But as I see it, I\'ll have to make a bat file that iterates a set of coffee files and spits out js f

9条回答
  •  旧巷少年郎
    2021-02-19 16:54

    If you want a different way of doing it, this might help: http://jashkenas.github.com/coffee-script/#scripts

    If you include the coffeescript compiler on your page, you can include files with a "text/coffeescript" type and they will get compiled client-side.

    Word of warning: Obviously, client-side compilation is not for something serious, but its completely fine for a small project/quick development. It would then be trivial to compile them on the server and change the MIME-type and filename when something a bit quicker is necessary.

提交回复
热议问题