Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

When changing coffeescript the js is not rendered #1

Open
philippkeller opened this issue Jun 4, 2014 · 2 comments
Open

When changing coffeescript the js is not rendered #1

philippkeller opened this issue Jun 4, 2014 · 2 comments

Comments

@philippkeller
Copy link

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
Copy link
Member

tommy351 commented Jun 4, 2014

Did you add -w option when using hexo generate?

@philippkeller
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants