hexojs / hexo-renderer-coffeescript

CoffeeScript renderer for Hexo.
https://hexo.io
MIT License
3 stars 6 forks source link

When changing coffeescript the js is not rendered #1

Open philippkeller opened 10 years ago

philippkeller commented 10 years ago

I have my coffeescript in source/scripts/site.coffee. When I initially put it there and do hexo generate it generates a file to public/scripts/site.js, which is correct.

However, when I edit source/scripts/site.coffee then public/scripts/site.js is never regenerated, even though hexo says it is updated, the content of the js stays the same. I need to manually delete the js file and do hexo generate again to have the content updated.

I've worked around my issue with a grunt setup, but it would be nice if this could be solved.

tommy351 commented 10 years ago

Did you add -w option when using hexo generate?

philippkeller commented 10 years ago

adding the -w option in hexo generate also doesn't help.

My session:

phred:philippkeller philipp$ hexo generate -w
[info] Files loaded in 0.748s
....

Then I updated the site.coffee file, and hexo got that:

[update] /Users/philipp/blog/philippkeller/themes/ewal/source/scripts/site.coffee

but the js file was still not updated:

phred:philippkeller philipp$ l themes/ewal/source/scripts/site.coffee
-rw-r--r--  1 philipp  staff  326 Jun  5 07:21 themes/ewal/source/scripts/site.coffee
phred:philippkeller philipp$ l public/scripts/site.js
-rw-r--r--  1 philipp  staff  518 Jun  5 07:17 public/scripts/site.js