Compile CoffeeScript on Save?

前端 未结 7 1138
花落未央
花落未央 2020-12-24 01:11

Is there anyway to easily compile CoffeeScript on save? I\'m using TextMate or Sublime Text 2.

7条回答
  •  眼角桃花
    2020-12-24 01:33

    gem install stasis
    stasis -d
    

    The best solution I have found compared with all other static compilation tools like StaticMatic, Middleman, etc.

    Very flexible and configurable and does not rely on any preset folder structure. Just add controller.rb and write some Ruby. Lots of helpers for doing clever things before/after compilation.

    https://github.com/winton/stasis

提交回复
热议问题