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

sass --watch does not compile stylesheets when it starts #213

Closed
kagminjeong opened this issue Nov 18, 2011 · 4 comments
Closed

sass --watch does not compile stylesheets when it starts #213

kagminjeong opened this issue Nov 18, 2011 · 4 comments

Comments

@kagminjeong
Copy link

When I run sass --watch to watch a directory's worth of stylesheets, if the destination directory is empty sass does not compile my stylesheets when it starts. To get the stylesheets compiled I have to compile them myself initially. It would be helpful if sass --watch made a pass over all sources and compiled them if the corresponding destination stylesheets did not exist or were outdated.

@nex3
Copy link
Contributor

nex3 commented Nov 19, 2011

This should work, and works for me. What's your sass --watch command line? What OS, Sass version, and Ruby version are you using?

@kagminjeong
Copy link
Author

It was my mistake. I did:

sass --watch public/stylesheets/ public/compiled/stylesheets/

when the correct syntax is:

sass --watch public/stylesheets/:public/compiled/stylesheets/

It would be nice if sass either accepted both or complained about the first one.

@nex3
Copy link
Contributor

nex3 commented Nov 23, 2011

sass --watch public/stylesheets/ public/compiled/stylesheets/ is a perfectly reasonable command. It means "watch all stylesheets in public/stylesheets and all stylesheets in public/compiled/stylesheets." I don't think there's a good way for Sass to determine that that's not what you meant here.

@kagminjeong
Copy link
Author

Fair enough.

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