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

CLI options to watch a directory #1212

Closed
ysimonson opened this issue Oct 22, 2015 · 7 comments
Closed

CLI options to watch a directory #1212

ysimonson opened this issue Oct 22, 2015 · 7 comments

Comments

@ysimonson
Copy link

Hello, I've been trying to figure out what the proper command line arguments are to watch a directory. I tried several combos - all of which seem to do keep the CLI running, but not doing anything (files don't compile, nothing in stdout/stderr.)

Based off #700 , I tried this: node-sass -w -r --output static/stylesheets static/sass

Based off #1075, I tried this: node-sass -w web/static/sass -o web/static/stylesheets

@xzyfer
Copy link
Contributor

xzyfer commented Oct 24, 2015

Are you watching .sass or .scss files?

There is a known issue with the watcher and .sass files currently.

@xzyfer
Copy link
Contributor

xzyfer commented Oct 24, 2015

Possibly related #1179

@ysimonson
Copy link
Author

It's .scss files

@xzyfer
Copy link
Contributor

xzyfer commented Oct 25, 2015

node-sass [options] <input> [output]

So the answer to your questions is

node-sass -w -r web/static/sass web/static/stylesheets

If this doesn't work please create a small, fully working, github repo that shows your problem.

@ysimonson
Copy link
Author

@xzyfer that gives me the error: An output directory must be specified when compiling a directory (it actually prints it out twice), even though web/static/stylesheets exists.

solomonhawk added a commit to vigetlabs/ca11y that referenced this issue Dec 24, 2015
Watching of unquoted @imported files when using indented syntax has a known bug.
sass/node-sass#1212
@xzyfer
Copy link
Contributor

xzyfer commented Jan 2, 2016

This should be fixed by #1322.

@xzyfer xzyfer added this to the next.patch milestone Jan 2, 2016
@xzyfer
Copy link
Contributor

xzyfer commented Jan 20, 2016

This is fixed on master and will be in the next release.

@xzyfer xzyfer closed this as completed Jan 20, 2016
@xzyfer xzyfer modified the milestone: next.patch Sep 4, 2016
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
Don't eval static division ops inside interpolants
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants