What's the best way to use CoffeeScript with Django if you're developing on Windows?

后端 未结 5 1613
無奈伤痛
無奈伤痛 2021-01-30 18:45

While starting to use Sass / Compass with Django couldn\'t be much easier regardless of platform, it has taken a bit of searching around to find the best way to use CoffeeScript

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 19:17

    You can use one of these CoffeeScript compilers.

    Some of them support file system watching, like the official node package. So you can start a console and do

    coffee -c src/ -o /bin --watch 
    

    and all the coffeescript files in src will be automatically recompiled when they change. You don't need any special integration with django, although it might be nice.

提交回复
热议问题