Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Watch for changes in imported files as well #700

Closed
opsydev opened this issue Feb 23, 2015 · 4 comments
Closed

Watch for changes in imported files as well #700

opsydev opened this issue Feb 23, 2015 · 4 comments

Comments

@opsydev
Copy link

opsydev commented Feb 23, 2015

Currently if I watch a file that has @import statements it will not watch for changes in the imported files. It would be great to have that feature even if it's an additional command line flag.

@xzyfer
Copy link
Contributor

xzyfer commented Feb 23, 2015

This should be fixed in 2.0.1
On 24 Feb 2015 04:29, "twistedR" notifications@github.com wrote:

Currently if I watch a file that has @import statements it will not watch
for changes in the imported files. It would be great to have that feature
even if it's an additional command line flag.


Reply to this email directly or view it on GitHub
#700.

@am11
Copy link
Contributor

am11 commented Feb 23, 2015

This should be fixed in 2.0.1

That is what I was thinking and confused about. :)
@Twistedr, see #629 and the related issue. Are you using node-sass v2.01?

@opsydev
Copy link
Author

opsydev commented Feb 23, 2015

Yes I am on 2.0.1. I was using the incorrect command. My bad.
Using node-sass -w -r --output dist src the proper import path is traversed. I was compiling a single file earlier. So my command node-sass -w sass/app.scss public/css/app.css was only looking for changes on that single file which has all my imports.

My bad, I should have looked through the existing issues better.

My use case is easily solved by using the recursive flag, I leave it up to you if you consider going through the import tree when compiling a single file is supposed to happen or not.

@am11
Copy link
Contributor

am11 commented Feb 23, 2015

@Twistedr, lets continue the recursive-related discussion at this open issue: #601.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants