Open philippkeller opened 10 years ago
Did you add -w
option when using hexo generate
?
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
I have my coffeescript in
source/scripts/site.coffee
. When I initially put it there and dohexo generate
it generates a file topublic/scripts/site.js
, which is correct.However, when I edit
source/scripts/site.coffee
thenpublic/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 dohexo 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.