Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seeing a delay with force: true option #12

Closed
jcollum opened this issue Jan 25, 2013 · 2 comments
Closed

seeing a delay with force: true option #12

jcollum opened this issue Jan 25, 2013 · 2 comments

Comments

@jcollum
Copy link

jcollum commented Jan 25, 2013

srcFolder = path.join(__dirname, 'assets', 'src', 'coffee');
publicFolder = path.join(__dirname, 'assets');

...
    app.use(require('connect-coffee-script')({
        src: srcFolder, dest: path.join( publicFolder, 'js'), force: true
    }));

I have a coffee file in /assets/src/coffee/foo.coffee that is getting compiled to /assets/js/foo.js. It's working, but I'm seeing a delay in the recompile. To get it to recompile I'm having to

a) delete the compiled file
b) navigate to http://localhost:3000/foo.js which results in 404 the first time or two
c) go back to http://localhost:3000/js/foo.js
d) see the new code there.

I'm using express 3.0.6. Windows 7.

@wdavidw
Copy link
Member

wdavidw commented Jan 27, 2013

Then maybe it is windows related. I never had, and never heard, of such a problem. This module being inspired by the stylus midlleware, did you look if they had a similar issue. And if not too much ask, if you find something, could you report it to me.

@jcollum
Copy link
Author

jcollum commented Jan 28, 2013

Looks like you're right:
https://github.com/LearnBoost/stylus/issues/547

I'll close this ticket.

Anyone else: if you see this as well please comment on the stylus issue.

@jcollum jcollum closed this as completed Jan 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants