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

Add --watch to less.js version of lessc binary #192

Closed
poswald opened this issue Feb 6, 2011 · 8 comments
Closed

Add --watch to less.js version of lessc binary #192

poswald opened this issue Feb 6, 2011 · 8 comments

Comments

@poswald
Copy link

poswald commented Feb 6, 2011

It would help people migrating from the older ruby-based lessc to be able to use the lessc --watch command

@ghost
Copy link

ghost commented Feb 7, 2011

I second that. A suboptimal workaround is to create an endless loop that compiles between a 2 second interval.

while true; do lessc foo.less foo.css; sleep 2; done

@poswald
Copy link
Author

poswald commented Feb 8, 2011

Sent a pull request. #194 will close this.

@scribu
Copy link

scribu commented Sep 5, 2011

+1 for --watch on the command line.

It would make it easier to start using less with various CMS-es, where it's not so straightforward to use rel="stylesheet/less" and #!watch.

@BruceClark
Copy link

To those still looking for a solution to this, I highly recommend trying out Coyote http://github.com/imulus/coyote

Coyote is a tool allowing you to watch source files for Coffescript, SASS, or LESS and then compile them on the fly. Example: coyote -w input.less:output.css

Cheers.

@littke
Copy link

littke commented May 23, 2012

Coyote did not work, fails with errors.

I found this decision frustrating. But thanks for making open source software.

@BruceClark
Copy link

It does work, you just needed to include the watch command.

$ coyote -w styles.less:styles.css

Cheers.

@BruceClark
Copy link

Also, just an FYI.

The LESS capability of coyote is not officially documented or supported at this time. That said, it's a great solution for people in this thread. Just use it knowing it's not ironed out fully at this time.

Official support and documentation is coming in the future.

strk pushed a commit to CartoDB/carto that referenced this issue Nov 2, 2012
Include the instance name in the rule id (fixes less#177)
strk pushed a commit to CartoDB/carto that referenced this issue Nov 2, 2012
@yvess
Copy link

yvess commented Nov 15, 2012

for those who want a general file/folder notifier
try watchdog https://github.com/gorakhargosh/watchdog (python)

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

6 participants